Back to Intellij Community

ClashingGetters

plugins/groovy/groovy-psi/resources/inspectionDescriptions/ClashingGetters.html

2025.3-rc-2278 B
Original Source

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

The result of accessing such property might be unexpected.

Example:

class X {
      boolean isFoo() { true }
      boolean getFoo() { false }
  }

  // getFoo() will be called
  new X().foo