1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Added annotations

This commit is contained in:
M66B 2019-03-14 16:19:56 +00:00
parent b4e2894a7a
commit e5d4a42c69

View file

@ -52,19 +52,19 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
private static ExecutorService executor = Executors.newFixedThreadPool(
Runtime.getRuntime().availableProcessors(), Helper.backgroundThreadFactory);
public void execute(Context context, LifecycleOwner owner, Bundle args, String name) {
public void execute(Context context, LifecycleOwner owner, @NonNull Bundle args, @NonNull String name) {
run(context, owner, args, name);
}
public void execute(LifecycleService service, Bundle args, String name) {
public void execute(LifecycleService service, @NonNull Bundle args, @NonNull String name) {
run(service, service, args, name);
}
public void execute(AppCompatActivity activity, Bundle args, String name) {
public void execute(AppCompatActivity activity, @NonNull Bundle args, @NonNull String name) {
run(activity, activity, args, name);
}
public void execute(final Fragment fragment, Bundle args, String name) {
public void execute(final Fragment fragment, @NonNull Bundle args, @NonNull String name) {
try {
run(fragment.getContext(), fragment.getViewLifecycleOwner(), args, name);
} catch (IllegalStateException ex) {