jdk/src/solaris/classes/sun/awt/X11/XToolkit.java
changeset 22584 eed64ee05369
parent 22567 5816a47fa4dd
child 23276 add6f5c93bc6
--- a/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Tue Jan 28 12:50:53 2014 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Tue Jan 28 09:42:05 2014 -0800
@@ -655,8 +655,8 @@
                 XWindowAttributes pattr = new XWindowAttributes();
                 try {
                     XlibWrapper.XGetWindowAttributes(XToolkit.getDisplay(), XToolkit.getDefaultRootWindow(), pattr.pData);
-                    screenWidth  = (int) pattr.get_width();
-                    screenHeight = (int) pattr.get_height();
+                    screenWidth  = pattr.get_width();
+                    screenHeight = pattr.get_height();
                 } finally {
                     pattr.dispose();
                 }
@@ -2074,7 +2074,7 @@
     }
 
     private static void setBackingStoreType() {
-        String prop = (String)AccessController.doPrivileged(
+        String prop = AccessController.doPrivileged(
                 new sun.security.action.GetPropertyAction("sun.awt.backingStore"));
 
         if (prop == null) {