aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/NonNullExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples/NonNullExample_pre.jpage')
-rw-r--r--website/usageExamples/NonNullExample_pre.jpage10
1 files changed, 10 insertions, 0 deletions
diff --git a/website/usageExamples/NonNullExample_pre.jpage b/website/usageExamples/NonNullExample_pre.jpage
new file mode 100644
index 00000000..47556ce7
--- /dev/null
+++ b/website/usageExamples/NonNullExample_pre.jpage
@@ -0,0 +1,10 @@
+import lombok.NonNull;
+
+public class NonNullExample extends Something {
+ private String name;
+
+ public NonNullExample(@NonNull Person person) {
+ super("Hello");
+ this.name = person.getName();
+ }
+}