Returns the given string if it is nonempty; null otherwise. @param string the string to test and possibly return @return string itself if it is nonempty; null if it is empty or null
(@Nullable String string)
| 52 | */ |
| 53 | |
| 54 | @Nullable |
| 55 | public static String emptyToNull(@Nullable String string) { |
| 56 | return isNullOrEmpty(string) ? null : string; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Returns {@code true} if the given string is null or is the empty string. |
nothing calls this directly
no test coverage detected