< prev index next >
src/solaris/classes/sun/awt/X11/XContentWindow.java
Print this page
rev 1571 : 8010297: Missing isLoggable() checks in logging code
Summary: Add isLoggable() checks
Reviewed-by: anthony, mchung, serb
Contributed-by: Laurent Bourges <bourges.laurent@gmail.com>
*** 106,116 ****
--- 106,118 ----
// Change in the size of the content window means, well, change of the size
// Change in the location of the content window means change in insets
boolean needHandleResize = !(newBounds.equals(getBounds()));
reshape(newBounds);
if (needHandleResize) {
+ if (insLog.isLoggable(Level.FINE)) {
insLog.fine("Sending RESIZED");
+ }
handleResize(newBounds);
}
} finally {
XToolkit.awtUnlock();
}
< prev index next >