From 3204d5e60e7a6547a926d02d4255068f84b042db Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Thu, 2 Jan 2020 12:25:38 +0100 Subject: [PATCH] fix a typo and some lint warnings --- .../android/lib/common/operations/RemoteOperation.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java index 9f009bbd..703decca 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java @@ -16,6 +16,7 @@ import okhttp3.OkHttpClient; import java.io.IOException; +@SuppressWarnings("WeakerAccess") public abstract class RemoteOperation implements Runnable { /** @@ -106,8 +107,7 @@ public abstract class RemoteOperation implements Runnable { * the listener objects must be called. * @return Thread were the remote operation is executed. */ - public Thread execute(OwnCloudClient client, - OnRemoteOperationListener listener, Handler listenerHandler) { + public Thread execute(OwnCloudClient client, OnRemoteOperationListener listener, Handler listenerHandler) { if (client == null) { throw new IllegalArgumentException ("Trying to execute a remote operation with a NULL OwnCloudClient"); @@ -121,7 +121,7 @@ public abstract class RemoteOperation implements Runnable { if (listener == null) { throw new IllegalArgumentException ("Trying to execute a remote operation asynchronously " + - "without a listener to notiy the result"); + "without a listener to notify the result"); } mListener = listener; @@ -236,9 +236,7 @@ public abstract class RemoteOperation implements Runnable { /** * Run operation for asynchronous or synchronous 'onExecute' method. *

- * Considers and performs silent refresh of account credentials if possible, and if - * {@link RemoteOperation#setSilentRefreshOfAccountCredentials(boolean)} was called with - * parameter 'true' before the execution. + * Considers and performs silent refresh of account credentials if possible * * @return Remote operation result */