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

Print this page
rev 9830 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by: darcy, prr

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