From b6f767bf054dbc006ce1f098ca785112effa8519 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Sat, 15 Nov 2008 05:13:05 +0000 Subject: [PATCH] Fix warning in code --- gson/src/test/java/com/google/gson/PrimitiveTypeAdapter.java | 2 +- gson/src/test/java/com/google/gson/functional/MapTest.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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; } }