#823·javapoet

Support sealed subclasses

Author: ZacSweersCreated Jan 25, 2021Updated Mar 27, 2024

This requires the introduction of the sealed modifier + support for the new permits syntax

Theoretical APIs:

java
// Note: SEALED is not available in modifiers yet/
TypeSpec.Builder#permits(ClassName)

When permitted subclasses are present, emit a sealed modifier and permits syntax