--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthEditorPaneUI.java Fri Jul 25 14:14:30 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthEditorPaneUI.java Fri Jul 25 17:50:36 2008 +0400
@@ -45,8 +45,8 @@
* I would prefer to use UIResource instad of this.
* Unfortunately Boolean is a final class
*/
- private Boolean localTrue = new Boolean(true);
- private Boolean localFalse = new Boolean(false);
+ private Boolean localTrue = Boolean.TRUE;
+ private Boolean localFalse = Boolean.FALSE;
/**
* Creates a UI for the JTextPane.
@@ -69,7 +69,7 @@
c.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES,
localTrue);
}
- updateStyle((JTextComponent)getComponent());
+ updateStyle(getComponent());
}
protected void uninstallDefaults() {