Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import java.io.IOException;

@SuppressWarnings("WeakerAccess")
public abstract class RemoteOperation<T> implements Runnable {

/**
Expand Down Expand Up @@ -106,8 +107,7 @@ public Thread execute(Account account, Context context,
* 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");
Expand All @@ -121,7 +121,7 @@ public Thread execute(OwnCloudClient client,
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");
Comment thread
abelgardep marked this conversation as resolved.
}
mListener = listener;

Expand Down Expand Up @@ -236,9 +236,7 @@ public RemoteOperationResult<T> execute(OkHttpClient client, Context context) {
/**
* Run operation for asynchronous or synchronous 'onExecute' method.
* <p>
* 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
*/
Expand Down