removed unneeded null check.
This commit is contained in:
parent
79a00cd906
commit
1fa43821e8
@ -85,9 +85,6 @@ public class JsonAdapterNullSafeTest extends TestCase {
|
|||||||
}
|
}
|
||||||
private JsonElement parseString(JsonParser parser, String json, String prevJson)
|
private JsonElement parseString(JsonParser parser, String json, String prevJson)
|
||||||
throws IOException { // called recursively
|
throws IOException { // called recursively
|
||||||
if (json == null || json.trim().isEmpty()) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
JsonElement root = parser.parse(json);
|
JsonElement root = parser.parse(json);
|
||||||
if (root instanceof JsonPrimitive) {
|
if (root instanceof JsonPrimitive) {
|
||||||
prevJson = json;
|
prevJson = json;
|
||||||
|
Loading…
Reference in New Issue
Block a user