diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-22 14:19:23 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-22 14:19:23 +0200 |
commit | ceda2e5efe229650d4e95de6b8a2632d9f616592 (patch) | |
tree | 1af7964267dc2ce40e0efb02ee767d58303bfab5 /test/transform/resource/after-delombok/DataWithGetter.java | |
parent | 868d8b0f93c0801f638b8c5523291aacd35d9ce2 (diff) | |
download | lombok-ceda2e5efe229650d4e95de6b8a2632d9f616592.tar.gz lombok-ceda2e5efe229650d4e95de6b8a2632d9f616592.tar.bz2 lombok-ceda2e5efe229650d4e95de6b8a2632d9f616592.zip |
toString(), equals(), and hashCode() now use getX() instead of x if either it exists OR it will be generated by some other lombok annotation, addressing issue #110.
code deduplication by removing HandleData's scanning for fields, which is now no longer done; the sub-parts of Data (Getter, Setter, RequiredArgsConstructor, etc) take care of it now.
fix for class-level @Getter/@Setter, which used to go for every field. Now they skip the usual fields (static, for setters final, and $ prefixed fields).
Bugfix for @Data not recognizing that it should let field-level @Getter/@Setter take care of generating the getter/setter for multi field declarations (@Getter int x, y);
Diffstat (limited to 'test/transform/resource/after-delombok/DataWithGetter.java')
-rw-r--r-- | test/transform/resource/after-delombok/DataWithGetter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/DataWithGetter.java b/test/transform/resource/after-delombok/DataWithGetter.java index 131633c3..28b8dee0 100644 --- a/test/transform/resource/after-delombok/DataWithGetter.java +++ b/test/transform/resource/after-delombok/DataWithGetter.java @@ -40,7 +40,7 @@ class DataWithGetter { @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { - return "DataWithGetterNone(x=" + this.getX() + ", y=" + this.getY() + ", z=" + this.getZ() + ")"; + return "DataWithGetter(x=" + this.getX() + ", y=" + this.getY() + ", z=" + this.getZ() + ")"; } @java.lang.SuppressWarnings("all") public int getX() { |