From e65f05d9d95607f9a8ead850d9eaeea499e4d3fc Mon Sep 17 00:00:00 2001 From: Jorg Bartnick Date: Fri, 29 Sep 2017 14:21:49 +0200 Subject: fixing documentation mixup --- usage_examples/experimental/WitherExample_post.jpage | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usage_examples/experimental') 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 -- cgit