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

Print this page

        

@@ -1488,11 +1488,13 @@
                         awtLockWait();
                     }
                 }
             } catch (InterruptedException ie) {
             // Note: the returned timeStamp can be incorrect in this case.
-                if (log.isLoggable(PlatformLogger.FINE)) log.fine("Catched exception, timeStamp may not be correct (ie = " + ie + ")");
+                if (log.isLoggable(PlatformLogger.FINE)) {
+                    log.fine("Catched exception, timeStamp may not be correct (ie = " + ie + ")");
+                }
             }
         } finally {
             awtUnlock();
         }
         return timeStamp;

@@ -1653,11 +1655,13 @@
             Map.Entry e = (Map.Entry)i.next();
             String name = (String)e.getKey();
 
             name = "gnome." + name;
             setDesktopProperty(name, e.getValue());
+            if (log.isLoggable(PlatformLogger.FINE)) {
             log.fine("name = " + name + " value = " + e.getValue());
+            }
 
             // XXX: we probably want to do something smarter.  In
             // particular, "Net" properties are of interest to the
             // "core" AWT itself.  E.g.
             //

@@ -2469,11 +2473,10 @@
             XlibWrapper.XConvertSelection(getDisplay(), atom.getAtom(),
                                           XAtom.get("VERSION").getAtom(), oops.getAtom(),
                                           win.getWindow(), XConstants.CurrentTime);
             XSync();
 
-
             eventLog.finer("Requested OOPS");
 
             long start = System.currentTimeMillis();
             while (!oops_updated && !oops_failed) {
                 try {