aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/WithByNullAnnos.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-08-27 00:15:02 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-02-15 07:23:10 +0100
commita991bebe41bd5037323f682301a5fe77ea89b7b9 (patch)
treeda92cd6868cf07b25ac91642d859d865ed43cbb9 /test/transform/resource/after-delombok/WithByNullAnnos.java
parentd08229a58007da1968aa86b4dd4a3a9a21a7b578 (diff)
downloadlombok-a991bebe41bd5037323f682301a5fe77ea89b7b9.tar.gz
lombok-a991bebe41bd5037323f682301a5fe77ea89b7b9.tar.bz2
lombok-a991bebe41bd5037323f682301a5fe77ea89b7b9.zip
[issue #2368] [withBy] support for javac
Diffstat (limited to 'test/transform/resource/after-delombok/WithByNullAnnos.java')
-rw-r--r--test/transform/resource/after-delombok/WithByNullAnnos.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/WithByNullAnnos.java b/test/transform/resource/after-delombok/WithByNullAnnos.java
new file mode 100644
index 00000000..cdaed973
--- /dev/null
+++ b/test/transform/resource/after-delombok/WithByNullAnnos.java
@@ -0,0 +1,13 @@
+import java.util.List;
+public class WithByNullAnnos {
+ final List<String> test;
+ @java.lang.SuppressWarnings("all")
+ public WithByNullAnnos(final List<String> test) {
+ this.test = test;
+ }
+ @org.checkerframework.checker.nullness.qual.NonNull
+ @java.lang.SuppressWarnings("all")
+ public WithByNullAnnos withTestBy(final java.util.function.@org.checkerframework.checker.nullness.qual.NonNull Function<? super List<String>, ? extends List<String>> transformer) {
+ return new WithByNullAnnos(transformer.apply(this.test));
+ }
+}