- Remove unnecessary catch block

This commit is contained in:
Joel Leitch 2011-11-13 00:04:39 +00:00
parent 3e303ef6f7
commit 2cbddbbbc5

View File

@ -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);
}
} }
/** /**