Skip to content

Commit

Permalink
logging method
Browse files Browse the repository at this point in the history
methods call from constructor should be final

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
  • Loading branch information
tobiasKaminsky committed Dec 2, 2019
1 parent 44ba1e6 commit 0e59023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ public abstract class RemoteOperation implements Runnable {
*/
@Deprecated
protected RemoteOperationResult run(OwnCloudClient client) {
Log_OC.d(this, "Not used anymore");
throw new UnsupportedOperationException("Not used anymore");
}

protected RemoteOperationResult run(NextcloudClient client) {
// Once all RemoteOperation implement it, this should be abstract
Log_OC.d(this, "Not yet implemented");
throw new UnsupportedOperationException("Not yet implemented");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ public String getRedirectedLocation() {
return mRedirectedLocation;
}

public boolean isIdPRedirection() {
public final boolean isIdPRedirection() {
return (mRedirectedLocation != null &&
(mRedirectedLocation.toUpperCase(Locale.US).contains("SAML") ||
mRedirectedLocation.toLowerCase(Locale.US).contains("wayf")));
Expand Down

0 comments on commit 0e59023

Please sign in to comment.