Comment Comment by SanderMak Note that this is not in JDK 15, but an upcoming direction for the language:> The ability to reason clearly and conclusively about permitted subclasses will be realized in a future release that supports pattern matching. parent SanderMak 6 years ago
> The ability to reason clearly and conclusively about permitted subclasses will be realized in a future release that supports pattern matching.