mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 20:21:01 +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:
@@ -9,6 +9,10 @@ public class EqualsAndHashCodeExample {
|
||||
private String[] tags;
|
||||
private int id;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@EqualsAndHashCode(callSuper=true)
|
||||
public static class Square extends Shape {
|
||||
private final int width, height;
|
||||
|
||||
Reference in New Issue
Block a user