Inspectopedia Help

Unnecessary 'public'

Reports unnecessary public modifiers as Groovy classes and methods are public by default.


public class Foo{ public void bar(){ } }

After the quick-fix is applied:

class Foo{ void bar(){ } }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Groovy, 233.SNAPSHOT

Last modified: 13 July 2023