1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Merge pull request #295 from owncloud/fixTypo

fix a typo and some lint warnings
This commit is contained in:
David González Verdugo 2020-01-14 16:33:29 +01:00 committed by GitHub
commit a63dd63b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ import okhttp3.OkHttpClient;
import java.io.IOException; import java.io.IOException;
@SuppressWarnings("WeakerAccess")
public abstract class RemoteOperation<T> implements Runnable { public abstract class RemoteOperation<T> implements Runnable {
/** /**
@ -106,8 +107,7 @@ public abstract class RemoteOperation<T> implements Runnable {
* the listener objects must be called. * the listener objects must be called.
* @return Thread were the remote operation is executed. * @return Thread were the remote operation is executed.
*/ */
public Thread execute(OwnCloudClient client, public Thread execute(OwnCloudClient client, OnRemoteOperationListener listener, Handler listenerHandler) {
OnRemoteOperationListener listener, Handler listenerHandler) {
if (client == null) { if (client == null) {
throw new IllegalArgumentException throw new IllegalArgumentException
("Trying to execute a remote operation with a NULL OwnCloudClient"); ("Trying to execute a remote operation with a NULL OwnCloudClient");
@ -121,7 +121,7 @@ public abstract class RemoteOperation<T> implements Runnable {
if (listener == null) { if (listener == null) {
throw new IllegalArgumentException throw new IllegalArgumentException
("Trying to execute a remote operation asynchronously " + ("Trying to execute a remote operation asynchronously " +
"without a listener to notiy the result"); "without a listener to notify the result");
} }
mListener = listener; mListener = listener;
@ -236,9 +236,7 @@ public abstract class RemoteOperation<T> implements Runnable {
/** /**
* Run operation for asynchronous or synchronous 'onExecute' method. * Run operation for asynchronous or synchronous 'onExecute' method.
* <p> * <p>
* Considers and performs silent refresh of account credentials if possible, and if * Considers and performs silent refresh of account credentials if possible
* {@link RemoteOperation#setSilentRefreshOfAccountCredentials(boolean)} was called with
* parameter 'true' before the execution.
* *
* @return Remote operation result * @return Remote operation result
*/ */