mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8267844: Replace Integer/Long.valueOf() with Integer/Long.parse*() where applicable
Reviewed-by: redestad
This commit is contained in:
parent
d38b31438d
commit
b29fbad940
6 changed files with 31 additions and 13 deletions
|
@ -76,6 +76,13 @@ public class Integers {
|
|||
}
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
public void decode(Blackhole bh) {
|
||||
for (String s : strings) {
|
||||
bh.consume(Integer.decode(s));
|
||||
}
|
||||
}
|
||||
|
||||
/** Performs toString on small values, just a couple of digits. */
|
||||
@Benchmark
|
||||
public void toStringSmall(Blackhole bh) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue