< prev index next >

src/solaris/classes/sun/awt/X11/XMenuBarPeer.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>

*** 514,524 **** * Now we override this function do disable F10 explicit * processing. All processing is done using KeyEvent. */ public void handleKeyPress(XEvent xev) { XKeyEvent xkey = xev.get_xkey(); ! if (log.isLoggable(Level.FINE)) log.fine(xkey.toString()); if (isEventDisabled(xev)) { return; } final Component currentSource = (Component)getEventSource(); //This is the only difference from XWindow.handleKeyPress --- 514,526 ---- * Now we override this function do disable F10 explicit * processing. All processing is done using KeyEvent. */ public void handleKeyPress(XEvent xev) { XKeyEvent xkey = xev.get_xkey(); ! if (log.isLoggable(Level.FINE)) { ! log.fine(xkey.toString()); ! } if (isEventDisabled(xev)) { return; } final Component currentSource = (Component)getEventSource(); //This is the only difference from XWindow.handleKeyPress
< prev index next >