mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
* Report for unqualified call of setter with non-unit return type to support the "builder" use case with `apply` function * Don't report for common getter-like prefixes "getAnd" and "getIf" * Add a test with is-getter with nullable boolean return type ^KTIJ-23652 ^KTIJ-17731 ^KTIJ-748 GitOrigin-RevId: 3eed485aca31a946eef8f874140491e0940cd6da
22 lines
382 B
Java
22 lines
382 B
Java
public class Foo {
|
|
private int first;
|
|
private String second;
|
|
|
|
public int getFirst() {
|
|
return first;
|
|
}
|
|
|
|
public String getSecond() {
|
|
return second;
|
|
}
|
|
|
|
public Foo setFirst(int first) {
|
|
this.first = first;
|
|
return this;
|
|
}
|
|
|
|
public Foo setSecond(String second) {
|
|
this.second = second;
|
|
return this;
|
|
}
|
|
} |