Inspectopedia Help

Clashing getters

Reports boolean methods which can be accessed via the same property name.

The result of accessing such property might be unexpected.


class X { boolean isFoo() { true } boolean getFoo() { false } } // getFoo() will be called new X().foo

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Groovy, 233.SNAPSHOT

Last modified: 13 July 2023