@Test public void checkNotEmpty_with_a_string_is_ok() { String message = "my message"; Preconditions.checkNotEmpty(message, "my string"); }
public static String checkNotEmpty(String message, String string) { checkNotNull(message, string); if (string.isEmpty()) { throw new IllegalArgumentException(message); } return string; }
Preconditions { public static String checkNotEmpty(String message, String string) { checkNotNull(message, string); if (string.isEmpty()) { throw new IllegalArgumentException(message); } return string; } }
Preconditions { public static String checkNotEmpty(String message, String string) { checkNotNull(message, string); if (string.isEmpty()) { throw new IllegalArgumentException(message); } return string; }  }
Preconditions { public static String checkNotEmpty(String message, String string) { checkNotNull(message, string); if (string.isEmpty()) { throw new IllegalArgumentException(message); } return string; }  static String checkNotEmpty(String message, String string); static T checkNotNull(String message, T object); static String checkLongerThan(String message, String string, int minLength); static String checkIsDigitsOnly(String message, String string); }
Preconditions { public static String checkNotEmpty(String message, String string) { checkNotNull(message, string); if (string.isEmpty()) { throw new IllegalArgumentException(message); } return string; }  static String checkNotEmpty(String message, String string); static T checkNotNull(String message, T object); static String checkLongerThan(String message, String string, int minLength); static String checkIsDigitsOnly(String message, String string);  }