RFR: 8298416: Console should be declared `sealed` [v4]
Alan Bateman
alanb at openjdk.org
Thu Dec 15 17:48:09 UTC 2022
On Thu, 15 Dec 2022 17:12:33 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> `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. The implementation resided in `Console` class is separated into `ConsoleImpl` class.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>
> newUnsupportedOperationException(), cosmetic changes to method descs
src/java.base/share/classes/java/io/Console.java line 95:
> 93: * @author Xueming Shen
> 94: * @since 1.6
> 95: * @sealedGraph
I'm not sure about sealedGraph because the there is nothing for user code to matching on.
-------------
PR: https://git.openjdk.org/jdk/pull/11615
More information about the core-libs-dev
mailing list