Sealed classes were a JDK 15 preview — what problem do they

On 15 I would mention it as preview — I would not ship --enable-preview in production. On 17+ I seal domain events: sealed interface LedgerEvent permits...

Sealed classes were a JDK 15 preview — what problem do they · Home · Support the platform