@Test void shouldThrowForNullIterable() { Iterable<Boolean> elems = null; InjectorException ex = assertThrows(InjectorException.class, () -> InjectorUtils.checkNoNullValues(elems)); assertThat(ex.getMessage(), equalTo(DEFAULT_NOT_NULL_MSG)); }
@SafeVarargs public static <T> void checkNoNullValues(T... arr) { checkNotNull(arr); for (Object o : arr) { checkNotNull(o); } }
InjectorUtils { @SafeVarargs public static <T> void checkNoNullValues(T... arr) { checkNotNull(arr); for (Object o : arr) { checkNotNull(o); } } }
InjectorUtils { @SafeVarargs public static <T> void checkNoNullValues(T... arr) { checkNotNull(arr); for (Object o : arr) { checkNotNull(o); } } private  InjectorUtils(); }
InjectorUtils { @SafeVarargs public static <T> void checkNoNullValues(T... arr) { checkNotNull(arr); for (Object o : arr) { checkNotNull(o); } } private  InjectorUtils(); static void checkNotNull(Object o); static void checkNotNull(Object o, String errorMessage); @SafeVarargs static void checkNoNullValues(T... arr); static boolean containsNullValue(Object... arr); static void checkArgument(boolean expression, String errorMessage); static void rethrowException(Exception e); @Nullable static T firstNotNull(T obj1, T obj2); static boolean canInstantiate(Class<?> clazz); }
InjectorUtils { @SafeVarargs public static <T> void checkNoNullValues(T... arr) { checkNotNull(arr); for (Object o : arr) { checkNotNull(o); } } private  InjectorUtils(); static void checkNotNull(Object o); static void checkNotNull(Object o, String errorMessage); @SafeVarargs static void checkNoNullValues(T... arr); static boolean containsNullValue(Object... arr); static void checkArgument(boolean expression, String errorMessage); static void rethrowException(Exception e); @Nullable static T firstNotNull(T obj1, T obj2); static boolean canInstantiate(Class<?> clazz);  }