On Sun, 20 Mar 2022 13:20:31 GMT, Andrey Turbanov <[email protected]> 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`.

This pull request has now been integrated.

Changeset: b8dd21b7
Author:    Andrey Turbanov <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/b8dd21b790f36450de9aa0acc56251715b1a33e9
Stats:     14 lines in 4 files changed: 0 ins; 4 del; 10 mod

8283801: Cleanup confusing String.toString calls

Reviewed-by: bpb

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

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

Reply via email to