@@ -6585,7 +6585,7 @@ static final public boolean parseBoolean(float what) {
6585
6585
* @return true if 'what' is "true" or "TRUE", false otherwise
6586
6586
*/
6587
6587
static final public boolean parseBoolean (String what ) {
6588
- return new Boolean ( what ). booleanValue ( );
6588
+ return Boolean . valueOf ( what );
6589
6589
}
6590
6590
6591
6591
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
@@ -6643,7 +6643,7 @@ static final public boolean[] parseBoolean(float what[]) {
6643
6643
static final public boolean [] parseBoolean (String what []) {
6644
6644
boolean outgoing [] = new boolean [what .length ];
6645
6645
for (int i = 0 ; i < what .length ; i ++) {
6646
- outgoing [i ] = new Boolean (what [i ]). booleanValue ( );
6646
+ outgoing [i ] = Boolean . valueOf (what [i ]);
6647
6647
}
6648
6648
return outgoing ;
6649
6649
}
@@ -6932,7 +6932,7 @@ static final public float parseFloat(String what) {
6932
6932
6933
6933
static final public float parseFloat (String what , float otherwise ) {
6934
6934
try {
6935
- return new Float ( what ). floatValue ( );
6935
+ return Float . valueOf ( what );
6936
6936
} catch (NumberFormatException e ) { }
6937
6937
6938
6938
return otherwise ;
@@ -6982,7 +6982,7 @@ static final public float[] parseFloat(String what[], float missing) {
6982
6982
float output [] = new float [what .length ];
6983
6983
for (int i = 0 ; i < what .length ; i ++) {
6984
6984
try {
6985
- output [i ] = new Float (what [i ]). floatValue ( );
6985
+ output [i ] = Float . valueOf (what [i ]);
6986
6986
} catch (NumberFormatException e ) {
6987
6987
output [i ] = missing ;
6988
6988
}
0 commit comments