--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java Fri Apr 04 20:32:59 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java Mon Apr 07 14:53:51 2008 +0400
@@ -1195,10 +1195,10 @@
if (options == null) {
if (optionType == JOptionPane.OK_CANCEL_OPTION &&
buttonIndex == 1) {
- optionPane.setValue(new Integer(2));
+ optionPane.setValue(Integer.valueOf(2));
} else {
- optionPane.setValue(new Integer(buttonIndex));
+ optionPane.setValue(Integer.valueOf(buttonIndex));
}
} else {
optionPane.setValue(options[buttonIndex]);
@@ -1393,7 +1393,7 @@
if (getName() == CLOSE) {
JOptionPane optionPane = (JOptionPane)e.getSource();
- optionPane.setValue(new Integer(JOptionPane.CLOSED_OPTION));
+ optionPane.setValue(Integer.valueOf(JOptionPane.CLOSED_OPTION));
}
}
}