diff --git a/gson/src/test/java/com/google/gson/PrimitiveTypeAdapter.java b/gson/src/test/java/com/google/gson/PrimitiveTypeAdapter.java index 1734415f..871ed6fa 100644 --- a/gson/src/test/java/com/google/gson/PrimitiveTypeAdapter.java +++ b/gson/src/test/java/com/google/gson/PrimitiveTypeAdapter.java @@ -31,7 +31,7 @@ import com.google.gson.Primitives; */ final class PrimitiveTypeAdapter { - @SuppressWarnings( { "unchecked" }) + @SuppressWarnings("unchecked") public T adaptType(Object from, Class to) { Class aClass = Primitives.wrap(to); if (Primitives.isWrapperType(aClass)) { diff --git a/gson/src/test/java/com/google/gson/functional/MapTest.java b/gson/src/test/java/com/google/gson/functional/MapTest.java index c8c72d6b..aee92b6a 100755 --- a/gson/src/test/java/com/google/gson/functional/MapTest.java +++ b/gson/src/test/java/com/google/gson/functional/MapTest.java @@ -100,6 +100,8 @@ public class MapTest extends TestCase { } private static class MyParameterizedMap extends LinkedHashMap { + private static final long serialVersionUID = 1L; + int foo = 10; } @@ -123,6 +125,8 @@ public class MapTest extends TestCase { } private static class MyMap extends LinkedHashMap { + private static final long serialVersionUID = 1L; + int foo = 10; } }