From 57fb2b9773d96777ba343e28e5e2ae4d6fa96f42 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 10 Apr 2018 00:12:24 +0200 Subject: [website] Whoops we had 2 copies of usage_examples. Fixed that by deleting the one that was NOT being used for the website. --- .../experimental/WitherExample_post.jpage | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 usage_examples/experimental/WitherExample_post.jpage (limited to 'usage_examples/experimental/WitherExample_post.jpage') diff --git a/usage_examples/experimental/WitherExample_post.jpage b/usage_examples/experimental/WitherExample_post.jpage deleted file mode 100644 index 3447192a..00000000 --- a/usage_examples/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 -- cgit