Files
Alexey Belkov d0626ed659 [kotlin] "Use Property Access Syntax" improvements
* 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
2022-11-16 15:37:34 +00:00

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;
}
}