(@NotNull String def, @Nullable JSONObject obj, @Nullable String key)
| 6 | |
| 7 | public class StringParser { |
| 8 | public static @NotNull String get(@NotNull String def, @Nullable JSONObject obj, @Nullable String key) { |
| 9 | String r = get(obj, key); |
| 10 | return r != null ? r : def; |
| 11 | } |
| 12 | |
| 13 | public static @Nullable String get(@Nullable JSONObject obj, @Nullable String key) { |
| 14 | if (obj == null || key == null || obj.isEmpty()) { |
no test coverage detected