aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/WithByNullAnnos.java6
-rw-r--r--test/transform/resource/before/WithByTypes.java18
2 files changed, 24 insertions, 0 deletions
diff --git a/test/transform/resource/before/WithByNullAnnos.java b/test/transform/resource/before/WithByNullAnnos.java
new file mode 100644
index 00000000..3fd8087f
--- /dev/null
+++ b/test/transform/resource/before/WithByNullAnnos.java
@@ -0,0 +1,6 @@
+//CONF: lombok.addNullAnnotations=checkerframework
+import java.util.List;
+@lombok.RequiredArgsConstructor
+public class WithByNullAnnos {
+ @lombok.experimental.WithBy final List<String> test;
+}
diff --git a/test/transform/resource/before/WithByTypes.java b/test/transform/resource/before/WithByTypes.java
new file mode 100644
index 00000000..9d2fe358
--- /dev/null
+++ b/test/transform/resource/before/WithByTypes.java
@@ -0,0 +1,18 @@
+@lombok.RequiredArgsConstructor
+@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE, makeFinal = true)
+@lombok.experimental.WithBy
+public class WithByTypes<T> {
+ int a;
+ long b;
+ short c;
+ char d;
+ byte e;
+ double f;
+ float g;
+ boolean h;
+ T i;
+
+ public static void example() {
+ new WithByTypes<String>(0, 0, (short) 0, ' ', (byte) 0, 0.0, 0.0F, true, "").withHBy(x -> !x).withFBy(x -> x + 0.5);
+ }
+}