Skip to content

Commit

Permalink
Replace NotNull annotation with NonNull annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr committed Oct 11, 2021
1 parent 3531909 commit 7d96c05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;

import org.jetbrains.annotations.NotNull;
import org.schabi.newpipe.DownloaderImpl;
import org.schabi.newpipe.MainActivity;
import org.schabi.newpipe.R;
Expand Down Expand Up @@ -628,7 +627,7 @@ public void onAnimationEnd() {
}

@Override
public Boolean shouldFastForward(@NotNull final DisplayPortion portion) {
public Boolean shouldFastForward(@NonNull final DisplayPortion portion) {
// Null indicates an invalid area or condition e.g. the middle portion
// or video start or end was reached during double tap seeking
if (invalidSeekConditions()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import android.view.WindowManager;
import android.widget.ProgressBar;

import androidx.annotation.NonNull;
import androidx.appcompat.content.res.AppCompatResources;

import org.jetbrains.annotations.NotNull;
import org.schabi.newpipe.MainActivity;
import org.schabi.newpipe.R;
import org.schabi.newpipe.player.MainPlayer;
Expand Down Expand Up @@ -45,8 +45,8 @@ public PlayerGestureListener(final Player player, final MainPlayer service) {
}

@Override
public void onDoubleTap(@NotNull final MotionEvent event,
@NotNull final DisplayPortion portion) {
public void onDoubleTap(@NonNull final MotionEvent event,
@NonNull final DisplayPortion portion) {
if (DEBUG) {
Log.d(TAG, "onDoubleTap called with playerType = ["
+ player.getPlayerType() + "], portion = [" + portion + "]");
Expand All @@ -63,7 +63,7 @@ public void onDoubleTap(@NotNull final MotionEvent event,
}

@Override
public void onSingleTap(@NotNull final MainPlayer.PlayerType playerType) {
public void onSingleTap(@NonNull final MainPlayer.PlayerType playerType) {
if (DEBUG) {
Log.d(TAG, "onSingleTap called with playerType = [" + player.getPlayerType() + "]");
}
Expand Down Expand Up @@ -91,10 +91,10 @@ public void onSingleTap(@NotNull final MainPlayer.PlayerType playerType) {
}

@Override
public void onScroll(@NotNull final MainPlayer.PlayerType playerType,
@NotNull final DisplayPortion portion,
@NotNull final MotionEvent initialEvent,
@NotNull final MotionEvent movingEvent,
public void onScroll(@NonNull final MainPlayer.PlayerType playerType,
@NonNull final DisplayPortion portion,
@NonNull final MotionEvent initialEvent,
@NonNull final MotionEvent movingEvent,
final float distanceX, final float distanceY) {
if (DEBUG) {
Log.d(TAG, "onScroll called with playerType = ["
Expand Down Expand Up @@ -202,8 +202,8 @@ private void onScrollMainBrightness(final float distanceX, final float distanceY
}

@Override
public void onScrollEnd(@NotNull final MainPlayer.PlayerType playerType,
@NotNull final MotionEvent event) {
public void onScrollEnd(@NonNull final MainPlayer.PlayerType playerType,
@NonNull final MotionEvent event) {
if (DEBUG) {
Log.d(TAG, "onScrollEnd called with playerType = ["
+ player.getPlayerType() + "]");
Expand Down

0 comments on commit 7d96c05

Please sign in to comment.