@Test public void testNotNull() { try { notNull(null, ""); fail(); } catch (IllegalArgumentException expected) { } notNull("", ""); }
public static <T> T notNull(final T argument, final String member) { if (argument == null) { throw new IllegalArgumentException(member + " may not be null"); } return argument; }
Args { public static <T> T notNull(final T argument, final String member) { if (argument == null) { throw new IllegalArgumentException(member + " may not be null"); } return argument; } }
Args { public static <T> T notNull(final T argument, final String member) { if (argument == null) { throw new IllegalArgumentException(member + " may not be null"); } return argument; }  }
Args { public static <T> T notNull(final T argument, final String member) { if (argument == null) { throw new IllegalArgumentException(member + " may not be null"); } return argument; }  static T notNull(final T argument, final String member); static String notEmpty(String argument, final String member); static String notBlank(final String argument, final String member); }
Args { public static <T> T notNull(final T argument, final String member) { if (argument == null) { throw new IllegalArgumentException(member + " may not be null"); } return argument; }  static T notNull(final T argument, final String member); static String notEmpty(String argument, final String member); static String notBlank(final String argument, final String member);  }