> parseInt/parseLong/parseShort/parseByte/parseFloat should be preferred, as > they return primitives. While valueOf returns boxed object.
Andrey Turbanov has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision: - Merge remote-tracking branch 'origin/master' into redundant_boxing_in_java.desktop - [PATCH] Cleanup redundant boxing in java.desktop module parseInt/parseLong/parseShort/parseByte/parseFloat should be preferred, as they return primitives. While valueOf returns boxed object. ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/5313/files - new: https://git.openjdk.java.net/jdk/pull/5313/files/c24b15a5..a6bdbb7d Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5313&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5313&range=00-01 Stats: 995 lines in 34 files changed: 688 ins; 181 del; 126 mod Patch: https://git.openjdk.java.net/jdk/pull/5313.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5313/head:pull/5313 PR: https://git.openjdk.java.net/jdk/pull/5313