src/share/classes/java/awt/Component.java

Print this page
rev 10203 : 8048874: Replace uses of 'new Byte', 'new Short' and 'new Character' with appropriate alternative across core classes
Reviewed-by: chegar, prappo
Contributed-by: Otavio Santana <otaviojava@java.net>

*** 8638,8648 **** */ public void firePropertyChange(String propertyName, char oldValue, char newValue) { if (changeSupport == null || oldValue == newValue) { return; } ! firePropertyChange(propertyName, new Character(oldValue), new Character(newValue)); } /** * Reports a bound property change. * --- 8638,8648 ---- */ public void firePropertyChange(String propertyName, char oldValue, char newValue) { if (changeSupport == null || oldValue == newValue) { return; } ! firePropertyChange(propertyName, Character.valueOf(oldValue), Character.valueOf(newValue)); } /** * Reports a bound property change. *