aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/NonNullExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website2/usageExamples/NonNullExample_pre.jpage')
-rw-r--r--website2/usageExamples/NonNullExample_pre.jpage10
1 files changed, 10 insertions, 0 deletions
diff --git a/website2/usageExamples/NonNullExample_pre.jpage b/website2/usageExamples/NonNullExample_pre.jpage
new file mode 100644
index 00000000..47556ce7
--- /dev/null
+++ b/website2/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();
+ }
+}