aboutsummaryrefslogtreecommitdiff
path: root/test/lombok/resource/after/NonNullPlain.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/lombok/resource/after/NonNullPlain.java')
-rw-r--r--test/lombok/resource/after/NonNullPlain.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/lombok/resource/after/NonNullPlain.java b/test/lombok/resource/after/NonNullPlain.java
new file mode 100644
index 00000000..2d7ebb4f
--- /dev/null
+++ b/test/lombok/resource/after/NonNullPlain.java
@@ -0,0 +1,25 @@
+class NonNullPlain {
+ @lombok.NonNull
+ int i;
+ @lombok.NonNull
+ String s;
+
+ @lombok.NonNull
+ public int getI() {
+ return i;
+ }
+
+ public void setI(@lombok.NonNull final int i) {
+ this.i = i;
+ }
+
+ @lombok.NonNull
+ public String getS() {
+ return s;
+ }
+
+ public void setS(@lombok.NonNull final String s) {
+ if (s == null) throw new java.lang.NullPointerException("s");
+ this.s = s;
+ }
+}