@Test public void testStringEmptyToNull() { assertNull(StringUtils.emptyToNull("")); assertEquals("Test String", StringUtils.emptyToNull("Test String")); }
public static @Nullable String emptyToNull(@Nullable String string) { return stringIsNullOrEmpty(string) ? null : string; }
StringUtils { public static @Nullable String emptyToNull(@Nullable String string) { return stringIsNullOrEmpty(string) ? null : string; } }
StringUtils { public static @Nullable String emptyToNull(@Nullable String string) { return stringIsNullOrEmpty(string) ? null : string; }  }
StringUtils { public static @Nullable String emptyToNull(@Nullable String string) { return stringIsNullOrEmpty(string) ? null : string; }  static String join(final String... elements); static String joinUsingDelim(String delim, final String... elements); static String join(final String[] array, final String separator); static String toHexString(byte[] bytes); static boolean isNullOrEmpty(String str); static String nullToEmpty(@Nullable String string); static String objToString(@Nullable Object obj); static @Nullable String emptyToNull(@Nullable String string); }
StringUtils { public static @Nullable String emptyToNull(@Nullable String string) { return stringIsNullOrEmpty(string) ? null : string; }  static String join(final String... elements); static String joinUsingDelim(String delim, final String... elements); static String join(final String[] array, final String separator); static String toHexString(byte[] bytes); static boolean isNullOrEmpty(String str); static String nullToEmpty(@Nullable String string); static String objToString(@Nullable Object obj); static @Nullable String emptyToNull(@Nullable String string);  }