aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/EqualsAndHashCodeExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples/EqualsAndHashCodeExample_pre.jpage')
-rw-r--r--website/usageExamples/EqualsAndHashCodeExample_pre.jpage6
1 files changed, 3 insertions, 3 deletions
diff --git a/website/usageExamples/EqualsAndHashCodeExample_pre.jpage b/website/usageExamples/EqualsAndHashCodeExample_pre.jpage
index 64faf59f..cf235917 100644
--- a/website/usageExamples/EqualsAndHashCodeExample_pre.jpage
+++ b/website/usageExamples/EqualsAndHashCodeExample_pre.jpage
@@ -1,13 +1,13 @@
import lombok.EqualsAndHashCode;
-@EqualsAndHashCode(exclude={"id", "shape"})
+@EqualsAndHashCode
public class EqualsAndHashCodeExample {
private transient int transientVar = 10;
private String name;
private double score;
- private Shape shape = new Square(5, 10);
+ @EqualsAndHashCode.Exclude private Shape shape = new Square(5, 10);
private String[] tags;
- private int id;
+ @EqualsAndHashCode.Exclude private int id;
public String getName() {
return this.name;