Integrated: 8356202: Cleanup Source code in String Implementation Classes

Roger Riggs rriggs at openjdk.org
Fri Oct 3 18:48:57 UTC 2025


On Thu, 2 Oct 2025 15:39:51 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Code cleanup in java.lang.StringLatin1 and StringUTF16.
> Remove the `public` qualifier from methods where it is not needed.
> Remove an unused toBytes method.
> Remove unused codePointXXX methods.
> Remove unnecessary casts of primitive types.
> 
> Some of these are suggested by IntelliJ, if the advice should not be taken, I'll revert and update the IDE settings.

This pull request has now been integrated.

Changeset: 012e079d
Author:    Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/012e079d11b629ddda8d5f687fd43ef21d210466
Stats:     158 lines in 2 files changed: 0 ins; 31 del; 127 mod

8356202: Cleanup Source code in String Implementation Classes

Reviewed-by: jpai, rgiulietti, liach

-------------

PR: https://git.openjdk.org/jdk/pull/27609


More information about the core-libs-dev mailing list