@Test public void checkNotNull1() { boolean test = false; try { Preconditions.checkNotNull(null, AccountErrorCode.NULL_PARAMETER); } catch (NulsRuntimeException e) { test = true; } assertTrue(test); test = false; try { Preconditions.checkNotNull(new Object[]{"1", null, "2"}, AccountErrorCode.NULL_PARAMETER); } catch (NulsRuntimeException e) { test = true; } assertTrue(test); test = false; Preconditions.checkNotNull(new Object[]{"1", "2"}, AccountErrorCode.NULL_PARAMETER); }
public static void checkNotNull(Object object, @Nullable ErrorCode message) { if (object == null) { throw new NulsRuntimeException(message); } }
Preconditions { public static void checkNotNull(Object object, @Nullable ErrorCode message) { if (object == null) { throw new NulsRuntimeException(message); } } }
Preconditions { public static void checkNotNull(Object object, @Nullable ErrorCode message) { if (object == null) { throw new NulsRuntimeException(message); } }  }
Preconditions { public static void checkNotNull(Object object, @Nullable ErrorCode message) { if (object == null) { throw new NulsRuntimeException(message); } }  static void checkArgument(boolean expression, @Nullable ErrorCode message); static void checkNotNull(Object object, @Nullable ErrorCode message); static void checkNotEmpty(Object object, @Nullable ErrorCode message); static void checkNotNull(Object[] objects, @Nullable ErrorCode message); }
Preconditions { public static void checkNotNull(Object object, @Nullable ErrorCode message) { if (object == null) { throw new NulsRuntimeException(message); } }  static void checkArgument(boolean expression, @Nullable ErrorCode message); static void checkNotNull(Object object, @Nullable ErrorCode message); static void checkNotEmpty(Object object, @Nullable ErrorCode message); static void checkNotNull(Object[] objects, @Nullable ErrorCode message);  }