From: Manolo Carrasco Date: Fri, 18 May 2012 11:54:28 +0000 (+0000) Subject: Fixes issue_135 X-Git-Tag: release-1.3.2~84 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c1dc20c7508f45623380b5f6f575734fbf11d0ea;p=gwtquery.git Fixes issue_135 --- 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) {