-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b03
package-private method formatUnsignedInt(int val, int shift, char[] buf, int offset, int len) was used before compact strings (JEP 254) were introduced. Since then it's never called and should be removed. The corresponding method in java.lang.Long was already removed in JDK-8148936.
Other minor things could be cleaned up in java.lang.Integer and java.lang.Long:
1. s = Objects.requireNonNull(s) could be replaced with Objects.requireNonNull(s)
2. Dangling javadoc in Long class before formatUnsignedLong0 could be properly attached to formatUnsignedLong0 and formatUnsignedLong0UTF16 (changing character buffer to byte buffer)
3. Similarly javadoc for remaining Integer::formatUnsignedInt and Integer::formatUnsignedIntUTF16 could be specified
4. Integer::formatUnsignedInt and Long::formatUnsignedLong0 could be private, similar to formatUnsignedIntUTF16 and formatUnsignedLong0UTF16
5. Integer::formatUnsignedInt and Integer::formatUnsignedIntUTF16 offset parameter is always zero and could be inlined.
Other minor things could be cleaned up in java.lang.Integer and java.lang.Long:
1. s = Objects.requireNonNull(s) could be replaced with Objects.requireNonNull(s)
2. Dangling javadoc in Long class before formatUnsignedLong0 could be properly attached to formatUnsignedLong0 and formatUnsignedLong0UTF16 (changing character buffer to byte buffer)
3. Similarly javadoc for remaining Integer::formatUnsignedInt and Integer::formatUnsignedIntUTF16 could be specified
4. Integer::formatUnsignedInt and Long::formatUnsignedLong0 could be private, similar to formatUnsignedIntUTF16 and formatUnsignedLong0UTF16
5. Integer::formatUnsignedInt and Integer::formatUnsignedIntUTF16 offset parameter is always zero and could be inlined.