From d48ac1ce70dd0c18268d0594d3fce98315156667 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Mon, 28 Feb 2011 07:14:43 +0000 Subject: [PATCH] removing generics so as eclipse does not hide the type of the array --- .../main/java/com/google/gwt/query/client/GQuery.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 6cb97517..e5c2ce4c 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 @@ -344,17 +344,11 @@ public class GQuery implements Lazy { return gq; } - /** - * Wrap a GQuery around an existing widget. - */ - public static GQuery $(Widget w){ - return w == null ? $() : $(w.getElement()); - } /** - * Wrap a GQuery around a array of existing widget. + * Wrap a GQuery around one widget or an array of existing ones. */ - public static GQuery $(T... widgets){ + public static GQuery $(Widget... widgets){ return $(Arrays.asList(widgets)); } -- 2.39.5