diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-31 15:58:19 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-31 15:58:19 +0100 |
commit | 3f0fec18726fb9c9f4dce614dbcfa650c1c04bf7 (patch) | |
tree | d03abb38a198bbe5417e3aa1e1f7c55b03f32e63 /test/transform/resource/after-ecj/StaticConstructor.java | |
parent | c42bfbae39990b365a5f05eb23895da6203023bc (diff) | |
download | lombok-3f0fec18726fb9c9f4dce614dbcfa650c1c04bf7.tar.gz lombok-3f0fec18726fb9c9f4dce614dbcfa650c1c04bf7.tar.bz2 lombok-3f0fec18726fb9c9f4dce614dbcfa650c1c04bf7.zip |
[issue #788] Add more nullity annotations where relevant
(chainable setters, static constructors, builder stuff)
Diffstat (limited to 'test/transform/resource/after-ecj/StaticConstructor.java')
-rw-r--r-- | test/transform/resource/after-ecj/StaticConstructor.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/StaticConstructor.java b/test/transform/resource/after-ecj/StaticConstructor.java new file mode 100644 index 00000000..93308faa --- /dev/null +++ b/test/transform/resource/after-ecj/StaticConstructor.java @@ -0,0 +1,11 @@ +import lombok.AllArgsConstructor; +public @AllArgsConstructor(staticName = "of") class StaticConstructor { + String name; + private @java.lang.SuppressWarnings("all") StaticConstructor(final String name) { + super(); + this.name = name; + } + public static @org.checkerframework.checker.nullness.qual.NonNull @java.lang.SuppressWarnings("all") StaticConstructor of(final String name) { + return new StaticConstructor(name); + } +}
\ No newline at end of file |