From c1dc20c7508f45623380b5f6f575734fbf11d0ea Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Fri, 18 May 2012 11:54:28 +0000 Subject: [PATCH] Fixes issue_135 --- .../main/java/com/google/gwt/query/client/Properties.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java index 8b2793ff..52c257f7 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java @@ -89,8 +89,10 @@ public class Properties extends JavaScriptObject { return c().exists(String.valueOf(name)); } + @SuppressWarnings("unchecked") public final T get(Object name) { - return c().get(String.valueOf(name)); + // Casting because of issue_135 + return (T)c().get(String.valueOf(name)); } public final boolean getBoolean(Object name) { @@ -113,8 +115,10 @@ public class Properties extends JavaScriptObject { return c().get(String.valueOf(name)); } + @SuppressWarnings("unchecked") public final T getJavaScriptObject(Object name) { - return c().getJavaScriptObject(String.valueOf(name)); + // Casting because of issue_135 + return (T)c().getJavaScriptObject(String.valueOf(name)); } public final JsArrayMixed getArray(Object name) { -- 2.39.5