diff options
| author | Daulet Zhanguzin <dauletz@google.com> | 2019-12-18 15:08:09 +0000 |
|---|---|---|
| committer | Tobias Thierer <tobiast@google.com> | 2020-01-03 18:11:08 +0000 |
| commit | cb0d19b0b555b1f3bcc633c0a0e6e463403fe95b (patch) | |
| tree | 1ac9d15fa8458aed032048fc4327dd5d19ca69e6 /core/java/android/widget/SmartSelectSprite.java | |
| parent | 87a7b2f694e6aeb9308e11c04d96001fd4c33de0 (diff) | |
Replace com.android.internal.util.Preconditions.checkNotNull with
java.util.Objects.requireNonNull
Bug: 126528330
Test: Treehugger
Exempt-From-Owner-Approval: Global refactoring.
Change-Id: Idf0949bd58a73bef2b5f3ecb6b99b2be2d1059c4
Diffstat (limited to 'core/java/android/widget/SmartSelectSprite.java')
| -rw-r--r-- | core/java/android/widget/SmartSelectSprite.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/widget/SmartSelectSprite.java b/core/java/android/widget/SmartSelectSprite.java index 9a84f69d120a..dc472e1bbd82 100644 --- a/core/java/android/widget/SmartSelectSprite.java +++ b/core/java/android/widget/SmartSelectSprite.java @@ -38,13 +38,12 @@ import android.text.Layout; import android.view.animation.AnimationUtils; import android.view.animation.Interpolator; -import com.android.internal.util.Preconditions; - import java.lang.annotation.Retention; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; +import java.util.Objects; /** * A utility class for creating and animating the Smart Select animation. @@ -75,7 +74,7 @@ final class SmartSelectSprite { private final int mTextSelectionLayout; RectangleWithTextSelectionLayout(RectF rectangle, int textSelectionLayout) { - mRectangle = Preconditions.checkNotNull(rectangle); + mRectangle = Objects.requireNonNull(rectangle); mTextSelectionLayout = textSelectionLayout; } @@ -342,7 +341,7 @@ final class SmartSelectSprite { context, android.R.interpolator.fast_out_linear_in); mFillColor = highlightColor; - mInvalidator = Preconditions.checkNotNull(invalidator); + mInvalidator = Objects.requireNonNull(invalidator); } /** |
