Fix warning in code
This commit is contained in:
parent
cf2a457af7
commit
b6f767bf05
@ -31,7 +31,7 @@ import com.google.gson.Primitives;
|
||||
*/
|
||||
final class PrimitiveTypeAdapter {
|
||||
|
||||
@SuppressWarnings( { "unchecked" })
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T adaptType(Object from, Class<T> to) {
|
||||
Class<?> aClass = Primitives.wrap(to);
|
||||
if (Primitives.isWrapperType(aClass)) {
|
||||
|
@ -100,6 +100,8 @@ public class MapTest extends TestCase {
|
||||
}
|
||||
|
||||
private static class MyParameterizedMap<K, V> extends LinkedHashMap<K, V> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
int foo = 10;
|
||||
}
|
||||
|
||||
@ -123,6 +125,8 @@ public class MapTest extends TestCase {
|
||||
}
|
||||
|
||||
private static class MyMap extends LinkedHashMap<String, String> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
int foo = 10;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user