Inspectopedia Help

Unnecessary 'sealed' modifier

Reports unnecessary sealed modifiers which used on methods, fields, or variables.

This modifier has effect only on classes, interfaces and traits.


sealed boolean foo() {} // modifier is unnecessary sealed Object bar // modifier is unnecessary // modifier is required and therefore not highlighted sealed class A {}

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Groovy, 233.SNAPSHOT

Last modified: 13 July 2023