]> source.dussan.org Git - gwtquery.git/commitdiff
Fixes issue_135
authorManolo Carrasco <manolo@apache.org>
Fri, 18 May 2012 11:54:28 +0000 (11:54 +0000)
committerManolo Carrasco <manolo@apache.org>
Fri, 18 May 2012 11:54:28 +0000 (11:54 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java

index 8b2793ffbf986cc35b3db3bbf9177f31ec0e2dff..52c257f7a99eeaf8bb7f9c7275badcd41e6567d5 100644 (file)
@@ -89,8 +89,10 @@ public class Properties extends JavaScriptObject {
     return c().exists(String.valueOf(name));\r
   }\r
 \r
+  @SuppressWarnings("unchecked")\r
   public final <T> T get(Object name) {\r
-    return c().get(String.valueOf(name));\r
+    // Casting because of issue_135\r
+    return (T)c().get(String.valueOf(name));\r
   }\r
 \r
   public final boolean getBoolean(Object name) {\r
@@ -113,8 +115,10 @@ public class Properties extends JavaScriptObject {
     return c().get(String.valueOf(name));\r
   }\r
   \r
+  @SuppressWarnings("unchecked")\r
   public final <T extends JavaScriptObject> T getJavaScriptObject(Object name) {\r
-    return c().getJavaScriptObject(String.valueOf(name));\r
+    // Casting because of issue_135\r
+    return (T)c().getJavaScriptObject(String.valueOf(name));\r
   }\r
 \r
   public final JsArrayMixed getArray(Object name) {\r