Merge pull request #1170 from thzero/deprecationwarnings
Refactored from new Boolean and new Integer to Boolean.valueOf and Integer.valueOf due to deprecation warnings.
This commit is contained in:
commit
e5e6e40184
@ -521,7 +521,7 @@ public class CustomExpression implements Cloneable {
|
|||||||
* Used for temporary substitution when evaluating index and range expressions.
|
* Used for temporary substitution when evaluating index and range expressions.
|
||||||
*/
|
*/
|
||||||
public String hash() {
|
public String hash() {
|
||||||
Integer hashint = new Integer(this.getExpressionString().hashCode() + symbol.hashCode());
|
Integer hashint = Integer.valueOf(this.getExpressionString().hashCode() + symbol.hashCode());
|
||||||
String hash = "$";
|
String hash = "$";
|
||||||
for (char c : hashint.toString().toCharArray()) {
|
for (char c : hashint.toString().toCharArray()) {
|
||||||
if (c == '-')
|
if (c == '-')
|
||||||
|
@ -78,7 +78,7 @@ class MotorMountTableModel extends AbstractTableModel implements ComponentChange
|
|||||||
public Object getValueAt(int row, int column) {
|
public Object getValueAt(int row, int column) {
|
||||||
switch (column) {
|
switch (column) {
|
||||||
case 0:
|
case 0:
|
||||||
return new Boolean(potentialMounts.get(row).isMotorMount());
|
return Boolean.valueOf(potentialMounts.get(row).isMotorMount());
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
return potentialMounts.get(row).toString();
|
return potentialMounts.get(row).toString();
|
||||||
|
@ -534,7 +534,7 @@ public class SimulationPlotPanel extends JPanel {
|
|||||||
public Object getValueAt(int row, int column) {
|
public Object getValueAt(int row, int column) {
|
||||||
switch (column) {
|
switch (column) {
|
||||||
case 0:
|
case 0:
|
||||||
return new Boolean(configuration.isEventActive(eventTypes[row]));
|
return Boolean.valueOf(configuration.isEventActive(eventTypes[row]));
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
return eventTypes[row].toString();
|
return eventTypes[row].toString();
|
||||||
|
@ -323,9 +323,9 @@ public class MultiSlider extends JSlider {
|
|||||||
accessibleContext.firePropertyChange(
|
accessibleContext.firePropertyChange(
|
||||||
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
|
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
|
||||||
(oldModel == null
|
(oldModel == null
|
||||||
? null : new Integer(oldModel.getValue())),
|
? null : Integer.valueOf(oldModel.getValue())),
|
||||||
(newModel == null
|
(newModel == null
|
||||||
? null : new Integer(newModel.getValue())));
|
? null : Integer.valueOf(newModel.getValue())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -348,7 +348,7 @@ public class MultiSlider extends JSlider {
|
|||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
getModelAt(i).setMinimum(minimum);
|
getModelAt(i).setMinimum(minimum);
|
||||||
}
|
}
|
||||||
firePropertyChange( "minimum", new Integer( oldMin ), new Integer( minimum ) );
|
firePropertyChange("minimum", Integer.valueOf(oldMin), Integer.valueOf(minimum));
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
@ -367,7 +367,7 @@ public class MultiSlider extends JSlider {
|
|||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
getModelAt(i).setMaximum(maximum);
|
getModelAt(i).setMaximum(maximum);
|
||||||
}
|
}
|
||||||
firePropertyChange( "maximum", new Integer( oldMax ), new Integer( maximum ) );
|
firePropertyChange("maximum", Integer.valueOf(oldMax), Integer.valueOf(maximum));
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
@ -427,8 +427,8 @@ public class MultiSlider extends JSlider {
|
|||||||
if (accessibleContext != null) {
|
if (accessibleContext != null) {
|
||||||
accessibleContext.firePropertyChange(
|
accessibleContext.firePropertyChange(
|
||||||
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
|
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY,
|
||||||
new Integer(oldValue),
|
Integer.valueOf(oldValue),
|
||||||
new Integer(m.getValue()));
|
Integer.valueOf(m.getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user