diff options
Diffstat (limited to 'test/delombok/resource/after/NonNullPlain.java')
-rw-r--r-- | test/delombok/resource/after/NonNullPlain.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/delombok/resource/after/NonNullPlain.java b/test/delombok/resource/after/NonNullPlain.java new file mode 100644 index 00000000..2d7ebb4f --- /dev/null +++ b/test/delombok/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; + } +} |