Skip to content

Commit

Permalink
Add missing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Jan 31, 2024
1 parent 0018298 commit 3ddf154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object, ?, ?> task) {
if (task == null) {
Expand All @@ -66,6 +67,7 @@ public static void executeTask(@Nullable AsyncTask<Object, ?, ?> 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public static <T extends View> 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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3ddf154

Please sign in to comment.