Removes dead code and cleans up annotations Nullable/NonNull annotations.

This commit is contained in:
2021-07-05 22:41:49 -07:00
parent bf6220b339
commit 35659810f9
62 changed files with 290 additions and 255 deletions

View File

@@ -1,9 +1,11 @@
package com.majinnaibu.monstercards.helpers;
import androidx.annotation.NonNull;
import java.util.Objects;
public final class ArrayHelper {
public static int indexOf(Object[] array, Object target) {
public static int indexOf(@NonNull Object[] array, Object target) {
for (int index = 0; index < array.length; index++) {
if (Objects.equals(array[index], target)) {
return index;