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-delombok/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-delombok/StaticConstructor.java')
-rw-r--r-- | test/transform/resource/after-delombok/StaticConstructor.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/StaticConstructor.java b/test/transform/resource/after-delombok/StaticConstructor.java new file mode 100644 index 00000000..f9c862d7 --- /dev/null +++ b/test/transform/resource/after-delombok/StaticConstructor.java @@ -0,0 +1,12 @@ +public class StaticConstructor { + String name; + @java.lang.SuppressWarnings("all") + private StaticConstructor(final String name) { + this.name = name; + } + @org.checkerframework.checker.nullness.qual.NonNull + @java.lang.SuppressWarnings("all") + public static StaticConstructor of(final String name) { + return new StaticConstructor(name); + } +}
\ No newline at end of file |