aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-05-15 01:07:03 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-05-15 01:07:03 +0200
commit4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4 (patch)
treed7797bc15e487dc98c048d6e5e063698331fa22e /website/usageExamples
parent649a7b72bf8119e286e991bce29fb63bdb26c09d (diff)
downloadlombok-4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4.tar.gz
lombok-4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4.tar.bz2
lombok-4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4.zip
[documentation] documenting the new-style include/exclude of ToString and EqualsAndHashCode
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;