8200364: Remove unnecessary boxing via primitive wrapper valueOf(String) methods
Reviewed-by: dfuchs, alanb
This commit is contained in:
parent
826b38052c
commit
79fffd05ef
@ -212,7 +212,7 @@ public class ChoiceFormat extends NumberFormat {
|
|||||||
} else if (tempBuffer.equals("-\u221E")) {
|
} else if (tempBuffer.equals("-\u221E")) {
|
||||||
startValue = Double.NEGATIVE_INFINITY;
|
startValue = Double.NEGATIVE_INFINITY;
|
||||||
} else {
|
} else {
|
||||||
startValue = Double.valueOf(tempBuffer);
|
startValue = Double.parseDouble(tempBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch == '<' && startValue != Double.POSITIVE_INFINITY &&
|
if (ch == '<' && startValue != Double.POSITIVE_INFINITY &&
|
||||||
|
@ -640,7 +640,7 @@ public class Logger {
|
|||||||
return System.getProperty(key);
|
return System.getProperty(key);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return Boolean.valueOf(s);
|
return Boolean.parseBoolean(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user