Suppress unchecked type cast warning

This commit is contained in:
YOUNG HO CHA 2020-09-12 13:40:09 +09:00
parent 92a98dab02
commit 6ac9f7d840

View File

@ -782,6 +782,7 @@ public final class TypeAdapters {
continue;
}
field.setAccessible(true);
@SuppressWarnings("unchecked")
T constant = (T)(field.get(null));
String name = constant.name();
SerializedName annotation = field.getAnnotation(SerializedName.class);