src/solaris/classes/sun/awt/X11/InfoWindow.java

Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:

@@ -205,12 +205,13 @@
                             textLabel.setText(tooltipString.substring(0, TOOLTIP_MAX_LENGTH));
                         } else {
                             textLabel.setText(tooltipString);
                         }
 
-                        Point pointer = (Point)AccessController.doPrivileged(new PrivilegedAction() {
-                                public Object run() {
+                        Point pointer = AccessController.doPrivileged(
+                            new PrivilegedAction<Point>() {
+                                public Point run() {
                                     if (!isPointerOverTrayIcon(liveArguments.getBounds())) {
                                         return null;
                                     }
                                     return MouseInfo.getPointerInfo().getLocation();
                                 }