aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples')
-rw-r--r--website/usageExamples/EqualsAndHashCodeExample_pre.jpage6
-rw-r--r--website/usageExamples/ToStringExample_pre.jpage4
2 files changed, 5 insertions, 5 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;
diff --git a/website/usageExamples/ToStringExample_pre.jpage b/website/usageExamples/ToStringExample_pre.jpage
index 39b25892..1b6b58e0 100644
--- a/website/usageExamples/ToStringExample_pre.jpage
+++ b/website/usageExamples/ToStringExample_pre.jpage
@@ -1,12 +1,12 @@
import lombok.ToString;
-@ToString(exclude="id")
+@ToString
public class ToStringExample {
private static final int STATIC_VAR = 10;
private String name;
private Shape shape = new Square(5, 10);
private String[] tags;
- private int id;
+ @ToString.Exclude private int id;
public String getName() {
return this.name;