aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2017-10-02 21:16:50 +0200
committerGitHub <noreply@github.com>2017-10-02 21:16:50 +0200
commit214cff5dd2e9d04b780f3586356c43f7242c06c8 (patch)
treebe9653d72165e12333b128409083e0671f079dc3
parentdfb301fe1895818a6003be0c78481f0c3ba22759 (diff)
parente65f05d9d95607f9a8ead850d9eaeea499e4d3fc (diff)
downloadlombok-214cff5dd2e9d04b780f3586356c43f7242c06c8.tar.gz
lombok-214cff5dd2e9d04b780f3586356c43f7242c06c8.tar.bz2
lombok-214cff5dd2e9d04b780f3586356c43f7242c06c8.zip
Merge pull request #1479 from jb--/master
fixing documentation mixup
-rw-r--r--usage_examples/experimental/WitherExample_post.jpage10
-rw-r--r--website/usageExamples/experimental/WitherExample_post.jpage10
2 files changed, 10 insertions, 10 deletions
diff --git a/usage_examples/experimental/WitherExample_post.jpage b/usage_examples/experimental/WitherExample_post.jpage
index bb5952af..3447192a 100644
--- a/usage_examples/experimental/WitherExample_post.jpage
+++ b/usage_examples/experimental/WitherExample_post.jpage
@@ -3,19 +3,19 @@ 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(age, name);
+ 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(age, name);
+ return this.name == name ? this : new WitherExample(name, age);
}
} \ No newline at end of file
diff --git a/website/usageExamples/experimental/WitherExample_post.jpage b/website/usageExamples/experimental/WitherExample_post.jpage
index bb5952af..3447192a 100644
--- a/website/usageExamples/experimental/WitherExample_post.jpage
+++ b/website/usageExamples/experimental/WitherExample_post.jpage
@@ -3,19 +3,19 @@ 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(age, name);
+ 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(age, name);
+ return this.name == name ? this : new WitherExample(name, age);
}
} \ No newline at end of file