On Thu, 9 Sep 2021 20:12:47 GMT, Andrey Turbanov 
<github.com+741251+turban...@openjdk.org> wrote:

> Redundant castings make code harder to read.
> Found them by IntelliJ IDEA.
> I tried to select only casts which are definitely safe to remove. Also didn't 
> touch primitive types casts.

Curious. The JDK build is done with javac -Xlint:cast warning enabled 
(JDK-8032734) which is intended to catch issues like this. Perhaps IntelliJ is 
using a different (or sharper) analysis.

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

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

Reply via email to