Merge "Fix UnnecessaryCheckNotNull errorprone issue" into main
diff --git a/src/com/android/providers/media/photopicker/viewmodel/PickerViewModel.java b/src/com/android/providers/media/photopicker/viewmodel/PickerViewModel.java
index ff5e5c0..3cf7b7b 100644
--- a/src/com/android/providers/media/photopicker/viewmodel/PickerViewModel.java
+++ b/src/com/android/providers/media/photopicker/viewmodel/PickerViewModel.java
@@ -423,9 +423,8 @@
* Performs required modification to the item list and returns the live data for it.
*/
public LiveData<PaginatedItemsResult> getPaginatedItemsForAction(
- @NonNull @ItemsAction.Type int action,
+ @ItemsAction.Type int action,
@Nullable PaginationParameters paginationParameters) {
- Objects.requireNonNull(action);
switch (action) {
case ACTION_VIEW_CREATED: {
// Use this when a fresh view is created. If the current list is empty, it will