Inspectopedia Help

Instance method call not qualified with 'this'

Reports calls to non-static methods on the same instance that are not qualified with this.

Example:

class Foo { void bar() {} void foo() { bar(); } }

After the quick-fix is applied:

class Foo { void bar() {} void foo() { this.bar(); } }

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024