< prev index next >

tools/Jemmy/JemmyFX/src/org/jemmy/fx/Lookups.java

Print this page

        

@@ -58,11 +58,11 @@
      * @param type
      * @return
      */
     @SuppressWarnings("unchecked")
     public static <T extends Node> Wrap<? extends T> byID(Wrap<?> parent, String id, Class<T> type) {
-        return byID(parent.as(Parent.class, Node.class), id, type);
+        return byID((Parent<Node>) parent.as(Parent.class, Node.class), id, type);
     }
     /**
      * Equivalent to <code>parent.lookup(type, new ByText<T>(text)).wrap(0)</code>
      * @param <T>
      * @param parent

@@ -82,11 +82,11 @@
      * @param type
      * @return
      */
     @SuppressWarnings("unchecked")
     public static <T extends Node> Wrap<? extends T> byText(Wrap<?> parent, String id, Class<T> type) {
-        return byText(parent.as(Parent.class, Node.class), id, type);
+        return byText((Parent<Node>) parent.as(Parent.class, Node.class), id, type);
     }
     /**
      * Equivalent to <code>FXRoot.ROOT.lookup(new ByTitleSceneLookup<Scene>(title)).wrap(0).as(Parent.class, Node.class)</code>
      * @param title
      * @return
< prev index next >