From 787b136d13990985cc57b72c4d135a1eeae5f86e Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Tue, 14 Jul 2020 22:08:12 +0300 Subject: [PATCH] NonNull instead of NotNull annotations --- .../android/material/appbar/FlingBehavior.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/google/android/material/appbar/FlingBehavior.java b/app/src/main/java/com/google/android/material/appbar/FlingBehavior.java index 7bd6a0d17..90e5edcd3 100644 --- a/app/src/main/java/com/google/android/material/appbar/FlingBehavior.java +++ b/app/src/main/java/com/google/android/material/appbar/FlingBehavior.java @@ -11,7 +11,6 @@ import android.widget.OverScroller; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.coordinatorlayout.widget.CoordinatorLayout; -import org.jetbrains.annotations.NotNull; import org.schabi.newpipe.R; import java.lang.reflect.Field; @@ -85,9 +84,9 @@ public final class FlingBehavior extends AppBarLayout.Behavior { } @Override - public boolean onStartNestedScroll(@NotNull final CoordinatorLayout parent, - @NotNull final AppBarLayout child, - @NotNull final View directTargetChild, + public boolean onStartNestedScroll(@NonNull final CoordinatorLayout parent, + @NonNull final AppBarLayout child, + @NonNull final View directTargetChild, final View target, final int nestedScrollAxes, final int type) { @@ -96,9 +95,9 @@ public final class FlingBehavior extends AppBarLayout.Behavior { } @Override - public boolean onNestedFling(@NotNull final CoordinatorLayout coordinatorLayout, - @NotNull final AppBarLayout child, - @NotNull final View target, final float velocityX, + public boolean onNestedFling(@NonNull final CoordinatorLayout coordinatorLayout, + @NonNull final AppBarLayout child, + @NonNull final View target, final float velocityX, final float velocityY, final boolean consumed) { return allowScroll && super.onNestedFling( coordinatorLayout, child, target, velocityX, velocityY, consumed);