- Remove unnecessary catch block
This commit is contained in:
parent
3e303ef6f7
commit
2cbddbbbc5
@ -632,13 +632,9 @@ public final class Gson {
|
|||||||
if (json == null) {
|
if (json == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
StringReader reader = new StringReader(json);
|
||||||
StringReader reader = new StringReader(json);
|
T target = (T) fromJson(reader, typeOfT);
|
||||||
T target = (T) fromJson(reader, typeOfT);
|
return target;
|
||||||
return target;
|
|
||||||
} catch (IllegalStateException e) {
|
|
||||||
throw new JsonSyntaxException(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user