mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
fix a typo and some lint warnings
This commit is contained in:
parent
fadc578f07
commit
3204d5e60e
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user