diff options
author | Alexander Kurtakov | 2013-12-03 23:07:40 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2013-12-03 23:07:40 +0000 |
commit | 4988c419200119bf4e94d9fb8baac88aa0de1c5d (patch) | |
tree | 2d200a2d6334310184d2834c8e3a87e7dec8eec4 /bundles/org.eclipse.swt | |
parent | 566f224486d7699123303fd9ef2006a70f786809 (diff) | |
download | eclipse.platform.swt-4988c419200119bf4e94d9fb8baac88aa0de1c5d.tar.gz eclipse.platform.swt-4988c419200119bf4e94d9fb8baac88aa0de1c5d.tar.xz eclipse.platform.swt-4988c419200119bf4e94d9fb8baac88aa0de1c5d.zip |
Fix generics warnings in SWT_AWT.
Change-Id: I59e9da8efa6403b9b160fd4df35e1b32cebd0384
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt')
-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}); |