diff options
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java index 781daf7c05..fab16adf1e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java @@ -100,7 +100,7 @@ static synchronized void initializeSwing() { /* Initialize the default focus traversal policy */ Class[] emptyClass = new Class[0]; Object[] emptyObject = new Object[0]; - Class clazz = Class.forName("javax.swing.UIManager"); + Class<?> clazz = Class.forName("javax.swing.UIManager"); Method method = clazz.getMethod("getDefaults", emptyClass); if (method != null) method.invoke(clazz, emptyObject); } catch (Throwable e) {} @@ -159,7 +159,7 @@ public static Frame new_Frame (final Composite parent) { * and other JREs take a long. To handle this binary incompatibility, use * reflection to create the embedded frame. */ - Class clazz = null; + Class<?> clazz = null; try { String className = embeddedFrameClass != null ? embeddedFrameClass : "sun.awt.X11.XEmbeddedFrame"; clazz = Class.forName(className); @@ -168,7 +168,7 @@ public static Frame new_Frame (final Composite parent) { } initializeSwing (); Object value = null; - Constructor constructor = null; + Constructor<?> constructor = null; try { constructor = clazz.getConstructor (new Class [] {int.class, boolean.class}); value = constructor.newInstance (new Object [] {new Integer ((int)/*64*/handle), Boolean.TRUE}); |