Integrated: 8274900: Too weak variable type leads to unnecessary cast in jdk.javadoc

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Fri Oct 8 23:11:10 UTC 2021


On Wed, 22 Sep 2021 18:25:53 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

> There are several redundant casts, caused by fact, that related declared variable has too weak type.
> We can change declaration type and remove redundant cast. It makes code more clear and easier to read.
> 
> Found by IntelliJ IDEA inspection 'Too weak variable type leads to unnecessary cast'

This pull request has now been integrated.

Changeset: 9c431dd1
Author:    Andrey Turbanov <turbanoff at gmail.com>
Committer: Pavel Rappo <prappo at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/9c431dd168c8a752d4aa1bde2268db0425d76990
Stats:     15 lines in 3 files changed: 0 ins; 2 del; 13 mod

8274900: Too weak variable type leads to unnecessary cast in jdk.javadoc

Reviewed-by: prappo

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

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


More information about the javadoc-dev mailing list