Almost all occurrences of
new Integer(
appearing in java/lang/Integer.java should be replaced by
valueOf(
Similar changes should be made in all other wrapper classes.
new Integer(
appearing in java/lang/Integer.java should be replaced by
valueOf(
Similar changes should be made in all other wrapper classes.
- duplicates
-
JDK-6490545 Impl of Integer.valueOf(String) is inefficient, does not leverage JDK 1.5 caching capabilities
- Closed
-
JDK-6480728 Byte.valueOf(byte) returns a cached value but Byte.valueOf(String)
- Resolved
- relates to
-
JDK-4990346 wrapper static factories fail to cache as required
- Resolved