Java-style property access
Reports properties accessed via method calls.
Example:
class Foo {
int foo
}
def bar = new Foo()
print(bar.getFoo())
After the quick-fix is applied:
class Foo {
int foo
}
def bar = new Foo()
print(bar.foo)
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Groovy, 233.SNAPSHOT |
Last modified: 13 July 2023