mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-05 16:25:03 +00:00
Added using .getX() instead of using .x in equals, hashCode, and toString. Also updated changelog as well as the docs.
Also updated usage examples for @EqualsAndHashCode, @ToString, and @Data, which also contained some other minor issues (such as missing this. qualifiers). Still to do is to detect that getters don't exist _yet_ but will later due to @Getter or @Data.
This commit is contained in:
@@ -8,6 +8,10 @@ public class ToStringExample {
|
||||
private String[] tags;
|
||||
private int id;
|
||||
|
||||
public String getName() {
|
||||
return this.getName();
|
||||
}
|
||||
|
||||
@ToString(callSuper=true, includeFieldNames=true)
|
||||
public static class Square extends Shape {
|
||||
private final int width, height;
|
||||
|
||||
Reference in New Issue
Block a user