From: Manolo Carrasco Date: Thu, 14 Apr 2011 07:20:14 +0000 (+0000) Subject: a better casting for the gwtc compiler X-Git-Tag: release-1.3.2~404 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=70f5c8ee25d2808b58da76dc75ba13016a5df9bf;p=gwtquery.git a better casting for the gwtc compiler --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 8e756498..01317510 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -2307,8 +2307,7 @@ public class GQuery implements Lazy { public List map(Function f) { ArrayList ret = new ArrayList(); for (int i = 0; i < elements().length; i++) { - @SuppressWarnings("unchecked") - W o = (W)f.f(elements()[i], i); + W o = f.f(elements()[i], i); if (o != null) { ret.add(o); }