RFR: 8298416: Console should be declared `sealed`

Naoto Sato naoto at openjdk.org
Mon Dec 12 23:13:35 UTC 2022


`Console` class now has a couple of internal subclasses within `java.io` package. It should be `sealed` and subclasses be declared in the `permits` clause.

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

Commit messages:
 - tidying up
 - sealed Console, impl/if separation

Changes: https://git.openjdk.org/jdk/pull/11615/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11615&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8298416
  Stats: 625 lines in 2 files changed: 366 ins; 237 del; 22 mod
  Patch: https://git.openjdk.org/jdk/pull/11615.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11615/head:pull/11615

PR: https://git.openjdk.org/jdk/pull/11615


More information about the core-libs-dev mailing list