< prev index next >

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

*** 255,265 **** void repaintText() { xtext.repaintNow(); } public void setBackground(Color c) { ! if (log.isLoggable(Level.FINE)) log.fine("target="+ target + ", old=" + background + ", new=" + c); background = c; if (xtext != null) { xtext.setBackground(c); xtext.setSelectedTextColor(c); } --- 255,267 ---- void repaintText() { xtext.repaintNow(); } public void setBackground(Color c) { ! if (log.isLoggable(Level.FINE)) { ! log.fine("target="+ target + ", old=" + background + ", new=" + c); ! } background = c; if (xtext != null) { xtext.setBackground(c); xtext.setSelectedTextColor(c); }
< prev index next >