--- a/jdk/src/share/classes/javax/swing/JScrollBar.java Fri Apr 04 20:32:59 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/JScrollBar.java Mon Apr 07 14:53:51 2008 +0400
@@ -314,7 +314,7 @@
BoundedRangeModel oldModel = model;
if (model != null) {
model.removeChangeListener(fwdAdjustmentEvents);
- oldValue = new Integer(model.getValue());
+ oldValue = Integer.valueOf(model.getValue());
}
model = newModel;
if (model != null) {
@@ -465,8 +465,8 @@
if (accessibleContext != null) {
accessibleContext.firePropertyChange(
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
- new Integer(oldValue),
- new Integer(m.getValue()));
+ Integer.valueOf(oldValue),
+ Integer.valueOf(m.getValue()));
}
}
@@ -611,8 +611,8 @@
if (accessibleContext != null) {
accessibleContext.firePropertyChange(
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
- new Integer(oldValue),
- new Integer(m.getValue()));
+ Integer.valueOf(oldValue),
+ Integer.valueOf(m.getValue()));
}
}
@@ -880,7 +880,7 @@
* @return The current value of this object.
*/
public Number getCurrentAccessibleValue() {
- return new Integer(getValue());
+ return Integer.valueOf(getValue());
}
/**
@@ -903,7 +903,7 @@
* @return The minimum value of this object.
*/
public Number getMinimumAccessibleValue() {
- return new Integer(getMinimum());
+ return Integer.valueOf(getMinimum());
}
/**