Fix warning in code

This commit is contained in:
Joel Leitch 2008-11-15 05:13:05 +00:00
parent cf2a457af7
commit b6f767bf05
2 changed files with 5 additions and 1 deletions

View File

@ -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)) {

View File

@ -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;
}
}