diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-21 10:51:09 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-21 10:51:09 +0200 |
commit | 91bb3455da2913c81745d2a7f7e5b42839964f58 (patch) | |
tree | d01d7683b1ad91ada20df34d69ef648aaceb0815 /usage_examples/EqualsAndHashCodeExample_pre.jpage | |
parent | c06660bd186c7ae8215a822c4eceab097407eeda (diff) | |
download | lombok-91bb3455da2913c81745d2a7f7e5b42839964f58.tar.gz lombok-91bb3455da2913c81745d2a7f7e5b42839964f58.tar.bz2 lombok-91bb3455da2913c81745d2a7f7e5b42839964f58.zip |
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.
Diffstat (limited to 'usage_examples/EqualsAndHashCodeExample_pre.jpage')
-rw-r--r-- | usage_examples/EqualsAndHashCodeExample_pre.jpage | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usage_examples/EqualsAndHashCodeExample_pre.jpage b/usage_examples/EqualsAndHashCodeExample_pre.jpage index b146f29a..64faf59f 100644 --- a/usage_examples/EqualsAndHashCodeExample_pre.jpage +++ b/usage_examples/EqualsAndHashCodeExample_pre.jpage @@ -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; |