Replaced a JDK 1.7 specific method with its JDK 1.6 equivalent.

This commit is contained in:
Inderjeet Singh 2016-05-17 01:03:00 -07:00
parent 0f80936ecd
commit 61f83d6309

View File

@ -805,7 +805,7 @@ public final class TypeAdapters {
constantToName.put(constant, name); constantToName.put(constant, name);
} }
} catch (NoSuchFieldException e) { } catch (NoSuchFieldException e) {
throw new AssertionError("Missing field in " + classOfT.getName(), e); throw new AssertionError(e);
} }
} }
@Override public T read(JsonReader in) throws IOException { @Override public T read(JsonReader in) throws IOException {