From 3ddf154bce1d520f2f1ccdbe32a92aa3641c77e4 Mon Sep 17 00:00:00 2001 From: Pranav Pandey Date: Wed, 31 Jan 2024 13:29:25 +0530 Subject: [PATCH] Add missing annotations --- .../com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java | 2 ++ .../com/pranavpandey/android/dynamic/util/DynamicViewUtils.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java index 597bf034..a9042a21 100644 --- a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java +++ b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java @@ -42,6 +42,7 @@ public class DynamicTaskUtils { * @deprecated Use {@link #executeTask(DynamicTask)} or standard * {@code java.util.concurrent} APIs. */ + @Deprecated @SuppressWarnings("deprecation") public static void executeTask(@Nullable AsyncTask task) { if (task == null) { @@ -66,6 +67,7 @@ public static void executeTask(@Nullable AsyncTask task) { * @deprecated Use {@link #cancelTask(DynamicTask, boolean)} or standard * {@code java.util.concurrent} APIs. */ + @Deprecated @SuppressWarnings("deprecation") public static void cancelTask(@Nullable AsyncTask task) { if (task == null) { diff --git a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java index 1bfd90ae..8a478e9d 100644 --- a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java +++ b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java @@ -86,6 +86,7 @@ public static boolean isRootLayout(@Nullable T view) { * @deprecated Use {@link DynamicWindowUtils#setEdgeToEdge(Window, boolean)} to support * latest API levels. */ + @Deprecated @SuppressWarnings("deprecation") @TargetApi(Build.VERSION_CODES.M) public static void setEdgeToEdge(@Nullable View view, boolean edgeToEdge) { @@ -120,6 +121,7 @@ public static void setEdgeToEdge(@Nullable View view, boolean edgeToEdge) { * * @deprecated Try to use {@link WindowInsetsControllerCompat} if possible. */ + @Deprecated @SuppressWarnings("deprecation") @TargetApi(Build.VERSION_CODES.M) public static boolean isEdgeToEdge(@NonNull View view) {