RFR: 8274505: Too weak variable type leads to unnecessary cast in java.desktop

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Wed Sep 29 11:17:47 UTC 2021


Such casts are actually redundant, but they are inserted, because variable is declared with too weak type.

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

Commit messages:
 - [PATCH] Too weak variable type leads to unnecessary cast in java.desktop
 - [PATCH] Too weak variable type leads to unnecessary cast in java.desktop

Changes: https://git.openjdk.java.net/jdk/pull/5731/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5731&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274505
  Stats: 78 lines in 11 files changed: 0 ins; 22 del; 56 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5731.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5731/head:pull/5731

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



More information about the client-libs-dev mailing list