aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src/test
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-02-28 21:52:09 +0000
committerManolo Carrasco <manolo@apache.org>2011-02-28 21:52:09 +0000
commit0a6c4e34c43c9731058d2acc0f3591a13f871135 (patch)
treec6513fed3c80cc857d015195f62f6574cf0e9331 /gwtquery-core/src/test
parent4f667da72fcd4b550ee844b98ff94586cb68d6a4 (diff)
downloadgwtquery-0a6c4e34c43c9731058d2acc0f3591a13f871135.tar.gz
gwtquery-0a6c4e34c43c9731058d2acc0f3591a13f871135.zip
Remove redundant methods
Diffstat (limited to 'gwtquery-core/src/test')
-rw-r--r--gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java
index 5d5be8fd..304dc9e8 100644
--- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java
+++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java
@@ -19,7 +19,7 @@ import static com.google.gwt.query.client.GQuery.$;
import static com.google.gwt.query.client.GQuery.$$;
import static com.google.gwt.query.client.GQuery.document;
-import java.util.ArrayList;
+import java.util.List;
import junit.framework.Assert;
@@ -786,7 +786,6 @@ public class GQueryCoreTest extends GWTTestCase {
assertEquals(true, isAttachedToTheDOM);
}
- @SuppressWarnings("unchecked")
public void testGQueryWidgets() {
final Button b1 = new Button("click-me");
RootPanel.get().add(b1);
@@ -817,7 +816,7 @@ public class GQueryCoreTest extends GWTTestCase {
String content = "<p id='1'/><p/><p id='2'/><p id='4'/>";
$(e).html(content);
- ArrayList<String> s = $("p", e).map(new Function() {
+ List<String> s = $("p", e).map(new Function() {
public Object f(Element e, int i) {
return null;
}
@@ -837,7 +836,7 @@ public class GQueryCoreTest extends GWTTestCase {
assertEquals("4", s.get(2));
- ArrayList<Element> a = $("p", e).map(new Function() {
+ List<Element> a = $("p", e).map(new Function() {
public Object f(Element e, int i) {
String id = $(e).attr("id");
return id.isEmpty() ? null: e;