aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/experimental
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-08-26 22:46:34 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-08-27 00:15:47 +0200
commitda5d9a12e72dc19888b9c1f69b34e73b2b25590c (patch)
treee2939b4efb28483c2ffef599e867b220e0ca1b7f /website/usageExamples/experimental
parent461b5541da3fc8c43439f032e2f1d37574a1a658 (diff)
downloadlombok-da5d9a12e72dc19888b9c1f69b34e73b2b25590c.tar.gz
lombok-da5d9a12e72dc19888b9c1f69b34e73b2b25590c.tar.bz2
lombok-da5d9a12e72dc19888b9c1f69b34e73b2b25590c.zip
[With] updated documentation for Wither/With
Diffstat (limited to 'website/usageExamples/experimental')
-rw-r--r--website/usageExamples/experimental/WitherExample_post.jpage21
-rw-r--r--website/usageExamples/experimental/WitherExample_pre.jpage14
2 files changed, 0 insertions, 35 deletions
diff --git a/website/usageExamples/experimental/WitherExample_post.jpage b/website/usageExamples/experimental/WitherExample_post.jpage
deleted file mode 100644
index 3447192a..00000000
--- a/website/usageExamples/experimental/WitherExample_post.jpage
+++ /dev/null
@@ -1,21 +0,0 @@
-import lombok.NonNull;
-
-public class WitherExample {
- private final int age;
- private @NonNull final String name;
-
- public WitherExample(String name, int age) {
- if (name == null) throw new NullPointerException();
- this.name = name;
- this.age = age;
- }
-
- public WitherExample withAge(int age) {
- return this.age == age ? this : new WitherExample(name, age);
- }
-
- protected WitherExample withName(@NonNull String name) {
- if (name == null) throw new java.lang.NullPointerException("name");
- return this.name == name ? this : new WitherExample(name, age);
- }
-} \ No newline at end of file
diff --git a/website/usageExamples/experimental/WitherExample_pre.jpage b/website/usageExamples/experimental/WitherExample_pre.jpage
deleted file mode 100644
index 5db799fc..00000000
--- a/website/usageExamples/experimental/WitherExample_pre.jpage
+++ /dev/null
@@ -1,14 +0,0 @@
-import lombok.AccessLevel;
-import lombok.NonNull;
-import lombok.experimental.Wither;
-
-public class WitherExample {
- @Wither private final int age;
- @Wither(AccessLevel.PROTECTED) @NonNull private final String name;
-
- public WitherExample(String name, int age) {
- if (name == null) throw new NullPointerException();
- this.name = name;
- this.age = age;
- }
-}