From d46fea80dbf2d654bc810334e6ac26a5a917cba4 Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Sat, 3 Apr 2010 05:53:11 +0000 Subject: [PATCH] added type cast to fix JDK version mismatch issue --- .../java/com/google/gson/webservice/definition/ParamMap.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wsdef/src/main/java/com/google/gson/webservice/definition/ParamMap.java b/wsdef/src/main/java/com/google/gson/webservice/definition/ParamMap.java index 459d302f..f2415ff0 100644 --- a/wsdef/src/main/java/com/google/gson/webservice/definition/ParamMap.java +++ b/wsdef/src/main/java/com/google/gson/webservice/definition/ParamMap.java @@ -63,8 +63,9 @@ class ParamMap { return contents.get(paramName); } + @SuppressWarnings("unchecked") public T get(TypedKey key) { - return get(key.getName(), key.getClassOfT()); + return (T) get(key.getName(), key.getClassOfT()); } @SuppressWarnings("unchecked")