Suppress unchecked type cast warning
This commit is contained in:
parent
92a98dab02
commit
6ac9f7d840
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user