Skip to content

Commit 61f83d6

Browse files
committed
Replaced a JDK 1.7 specific method with its JDK 1.6 equivalent.
1 parent 0f80936 commit 61f83d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ public EnumTypeAdapter(Class<T> classOfT) {
805805
constantToName.put(constant, name);
806806
}
807807
} catch (NoSuchFieldException e) {
808-
throw new AssertionError("Missing field in " + classOfT.getName(), e);
808+
throw new AssertionError(e);
809809
}
810810
}
811811
@Override public T read(JsonReader in) throws IOException {

0 commit comments

Comments
 (0)