Inspectopedia Help

Unnecessary 'non-sealed' modifier

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

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


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

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Groovy, 233.SNAPSHOT

Last modified: 13 July 2023