diff options
author | peichhorn <peichhor@web.de> | 2011-09-05 21:53:58 +0200 |
---|---|---|
committer | peichhorn <peichhor@web.de> | 2011-09-05 21:53:58 +0200 |
commit | 236c88fc5cb2444af353bec6370b43b915ed8fdb (patch) | |
tree | f83feee5039b8963d9605ab2d12ded91b9d3e557 /test/transform/resource/before | |
parent | 25fbdf0c5bf1e287d4a705126d0d46a1437e7674 (diff) | |
download | lombok-236c88fc5cb2444af353bec6370b43b915ed8fdb.tar.gz lombok-236c88fc5cb2444af353bec6370b43b915ed8fdb.tar.bz2 lombok-236c88fc5cb2444af353bec6370b43b915ed8fdb.zip |
fixed Issue 271: @NotNull annotations should introduce a null check
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/NonNullPlain.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/test/transform/resource/before/NonNullPlain.java b/test/transform/resource/before/NonNullPlain.java index 265b8c5a..a438d1d4 100644 --- a/test/transform/resource/before/NonNullPlain.java +++ b/test/transform/resource/before/NonNullPlain.java @@ -1,10 +1,17 @@ +import java.lang.annotation.*; + +@lombok.RequiredArgsConstructor +@lombok.Getter +@lombok.Setter class NonNullPlain { - @lombok.Setter @lombok.NonNull - @lombok.Getter int i; - - @lombok.Getter - @lombok.Setter + int i; @lombok.NonNull String s; + @NotNull + Object o; + + @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE}) + @Retention(RetentionPolicy.CLASS) + public @interface NotNull {} }
\ No newline at end of file |