Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-12-11 15:22:28 -0500
committerAndrey Loskutov2017-12-11 16:14:42 -0500
commitd3439ded5cd2a8c5cdbaea839a035934f50c2ee7 (patch)
tree5490a7033352ad27c1951f8d4a1423d532e656ca /bundles
parent6f31b4086f172bc3cbd72533abc67a5e4e3a19b2 (diff)
downloadeclipse.platform.swt-d3439ded5cd2a8c5cdbaea839a035934f50c2ee7.tar.gz
eclipse.platform.swt-d3439ded5cd2a8c5cdbaea839a035934f50c2ee7.tar.xz
eclipse.platform.swt-d3439ded5cd2a8c5cdbaea839a035934f50c2ee7.zip
Bug 411356 - remove @SuppressWarnings("rawtypes") from Display
Change-Id: I536a65398b6e26b9b2f5742f8908140b98bd5a05 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
index c3e4211baa..33c9b33b7e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
@@ -96,7 +96,6 @@ import org.eclipse.swt.internal.win32.*;
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
* @noextend This class is not intended to be subclassed by clients.
*/
-@SuppressWarnings("rawtypes")
public class Display extends Device {
/**
@@ -1713,7 +1712,7 @@ public static Display getDefault () {
}
}
-static boolean isValidClass (Class clazz) {
+static boolean isValidClass (Class<?> clazz) {
String name = clazz.getName ();
int index = name.lastIndexOf ('.');
return name.substring (0, index + 1).equals (PACKAGE_PREFIX);

Back to the top