RFR: 8283801: Cleanup confusing String.toString calls

Andrey Turbanov aturbanov at openjdk.java.net
Wed Mar 30 21:12:38 UTC 2022


On Sun, 20 Mar 2022 13:20:31 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> String.toString() calls doesn't make much sense. Only one place, where it could be used - to generate NPE. But in a few places of JDK codebase it's called, even when NPE will happen anyway.
> I propose to cleanup such places.
> Found by IntelliJ IDEA inspection `Redundant 'String' operation`.

Thank you for review!

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

PR: https://git.openjdk.java.net/jdk/pull/7878


More information about the core-libs-dev mailing list