Remove unnecessary interface modifiers

This commit is contained in:
TacoTheDank 2020-08-31 19:21:48 -04:00
parent ed0ace49a3
commit 3dc63b80d1
7 changed files with 22 additions and 22 deletions

View File

@ -143,7 +143,7 @@ public interface GoogleApiClient {
* @see #registerConnectionFailedListener(OnConnectionFailedListener)
* @see #unregisterConnectionFailedListener(OnConnectionFailedListener)
*/
public boolean isConnectionFailedListenerRegistered(OnConnectionFailedListener listener);
boolean isConnectionFailedListenerRegistered(OnConnectionFailedListener listener);
/**
* Closes the current connection to Google Play services and creates a new connection.
@ -198,7 +198,7 @@ public interface GoogleApiClient {
* @param listener the listener where the results of the asynchronous {@link #connect()} call
* are delivered.
*/
public void registerConnectionFailedListener(OnConnectionFailedListener listener);
void registerConnectionFailedListener(OnConnectionFailedListener listener);
/**
* Disconnects the client and stops automatic lifecycle management. Use this before creating a

View File

@ -40,20 +40,20 @@ public interface PendingResult<R extends Result> {
* Blocks until the task is completed. This is not allowed on the UI thread. The returned
* result object can have an additional failure mode of INTERRUPTED.
*/
public R await();
R await();
/**
* Blocks until the task is completed or has timed out waiting for the result. This is not
* allowed on the UI thread. The returned result object can have an additional failure mode
* of either INTERRUPTED or TIMEOUT.
*/
public R await(long time, TimeUnit unit);
R await(long time, TimeUnit unit);
public void cancel();
void cancel();
public boolean isCanceled();
boolean isCanceled();
public void setResultCallback(ResultCallback<R> callback, long time, TimeUnit unit);
void setResultCallback(ResultCallback<R> callback, long time, TimeUnit unit);
public void setResultCallback(ResultCallback<R> callback);
void setResultCallback(ResultCallback<R> callback);
}

View File

@ -23,5 +23,5 @@ import org.microg.gms.common.PublicApi;
*/
@PublicApi
public interface Result {
public Status getStatus();
Status getStatus();
}

View File

@ -29,5 +29,5 @@ public interface ResultCallback<R extends Result> {
*
* @param result The result from the API call. May not be null.
*/
public void onResult(R result);
void onResult(R result);
}

View File

@ -40,7 +40,7 @@ import static android.os.Build.VERSION.SDK_INT;
public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedChangeListener,
View.OnClickListener {
public static interface OnSwitchChangeListener {
public interface OnSwitchChangeListener {
/**
* Called when the checked state of the Switch has changed.
*

View File

@ -217,25 +217,25 @@ public class HttpFormClient {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface RequestHeader {
public String[] value();
String[] value();
public boolean truePresent() default true;
boolean truePresent() default true;
public boolean falsePresent() default false;
boolean falsePresent() default false;
public boolean nullPresent() default false;
boolean nullPresent() default false;
}
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface RequestContent {
public String[] value();
String[] value();
public boolean truePresent() default true;
boolean truePresent() default true;
public boolean falsePresent() default false;
boolean falsePresent() default false;
public boolean nullPresent() default false;
boolean nullPresent() default false;
}
@Retention(RetentionPolicy.RUNTIME)
@ -246,13 +246,13 @@ public class HttpFormClient {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ResponseField {
public String value();
String value();
}
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ResponseHeader {
public String value();
String value();
}
@Retention(RetentionPolicy.RUNTIME)

View File

@ -18,5 +18,5 @@ public interface OnCanceledListener {
/**
* Called when the Task is canceled successfully.
*/
public abstract void onCanceled();
void onCanceled();
}