diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-05-03 21:11:35 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2021-05-03 21:11:35 +0300 |
commit | b43ec8fd32811ee6d498d5304fe262a9228f36ad (patch) | |
tree | 2fcda6f7fe6d74549c5a40e35cd431ba77a65246 /News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java | |
parent | feb3ed672129182b2bf6f6512ac8fcd467dc8394 (diff) |
Remove warnings, use lambdas, use try-with, ...
Diffstat (limited to 'News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java')
-rw-r--r-- | News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java index e40bb1f3..b435c182 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java @@ -1,4 +1,4 @@ -/** +/* * Android ownCloud News * * @author David Luhmer @@ -27,6 +27,7 @@ import android.content.Context; import android.content.Intent; import android.util.Log; +import androidx.annotation.NonNull; import androidx.core.app.JobIntentService; import java.io.IOException; @@ -62,7 +63,7 @@ public class SyncItemStateService extends JobIntentService { } @Override - protected void onHandleWork(Intent intent) { + protected void onHandleWork(@NonNull Intent intent) { if(mApi.getNewsAPI() == null) { Log.w(TAG, "API is not initialized"); return; |