]> source.dussan.org Git - gwtquery.git/commitdiff
removing generics so as eclipse does not hide the type of the array
authorManolo Carrasco <manolo@apache.org>
Mon, 28 Feb 2011 07:14:43 +0000 (07:14 +0000)
committerManolo Carrasco <manolo@apache.org>
Mon, 28 Feb 2011 07:14:43 +0000 (07:14 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 6cb97517998006aeb528b020946ff2d06cfb2320..e5c2ce4cbbde190ea63d5845d4edf42350587cf3 100644 (file)
@@ -344,17 +344,11 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
     return gq;\r
   }\r
 \r
-  /**\r
-   * Wrap a GQuery around an existing widget.\r
-   */\r
-  public static GQuery $(Widget w){\r
-    return w == null ? $() : $(w.getElement());\r
-  }\r
 \r
   /**\r
-   * Wrap a GQuery around a array of existing widget.\r
+   * Wrap a GQuery around one widget or an array of existing ones.\r
    */\r
-  public static <T extends Widget> GQuery $(T... widgets){\r
+  public static GQuery $(Widget... widgets){\r
     return $(Arrays.asList(widgets));\r
   }\r
 \r