]> source.dussan.org Git - gwtquery.git/commitdiff
a better casting for the gwtc compiler
authorManolo Carrasco <manolo@apache.org>
Thu, 14 Apr 2011 07:20:14 +0000 (07:20 +0000)
committerManolo Carrasco <manolo@apache.org>
Thu, 14 Apr 2011 07:20:14 +0000 (07:20 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 8e756498d7b4a6a59e1f887de62427e0735c9b7a..0131751026d63afbb795cbb636e6bd07a6ce6109 100644 (file)
@@ -2307,8 +2307,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
   public <W> List<W> map(Function f) {\r
     ArrayList<W> ret = new ArrayList<W>();\r
     for (int i = 0; i < elements().length; i++) {\r
-      @SuppressWarnings("unchecked")\r
-      W o = (W)f.f(elements()[i], i);\r
+      W o = f.<W>f(elements()[i], i);\r
       if (o != null) {\r
         ret.add(o);\r
       }\r