From 74653838ad12ac94de16366e697d7f44a001b964 Mon Sep 17 00:00:00 2001 From: ibaker Date: Wed, 25 May 2022 10:35:46 +0000 Subject: [PATCH] Make `Rating.RATING_UNSET` package-private This value is only needed by subclasses of `Rating`, all of which are in this package (the `Rating` constructor is already package-private to ensure this). PiperOrigin-RevId: 450886872 --- .../src/main/java/com/google/android/exoplayer2/Rating.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/Rating.java b/library/common/src/main/java/com/google/android/exoplayer2/Rating.java index cde5b47911..4fdf140ac7 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/Rating.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/Rating.java @@ -31,7 +31,7 @@ import java.lang.annotation.Target; public abstract class Rating implements Bundleable { /** A float value that denotes the rating is unset. */ - public static final float RATING_UNSET = -1.0f; + /* package */ static final float RATING_UNSET = -1.0f; // Default package-private constructor to prevent extending Rating class outside this package. /* package */ Rating() {}