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/BuilderAccessWithGetter.java10
-rw-r--r--test/transform/resource/before/BuilderSimpleOnRecord.java7
-rw-r--r--test/transform/resource/before/BuilderSingularNullBehavior1.java1
-rw-r--r--test/transform/resource/before/BuilderSingularNullBehavior2.java1
-rw-r--r--test/transform/resource/before/BuilderSingularOnRecord.java11
-rw-r--r--test/transform/resource/before/BuilderWithNonNull.java1
-rw-r--r--test/transform/resource/before/BuilderWithNonNullWithSetterPrefix.java1
-rw-r--r--test/transform/resource/before/CheckerFrameworkBasic.java1
-rw-r--r--test/transform/resource/before/CheckerFrameworkBuilder.java1
-rw-r--r--test/transform/resource/before/CheckerFrameworkSuperBuilder.java1
-rw-r--r--test/transform/resource/before/ConstructorsOnRecord.java11
-rw-r--r--test/transform/resource/before/ConstructorsWithAccessors.java2
-rw-r--r--test/transform/resource/before/DataOnLocalClass.java1
-rw-r--r--test/transform/resource/before/DataOnRecord.java7
-rw-r--r--test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java18
-rw-r--r--test/transform/resource/before/EqualsAndHashCodeAnnotated.java2
-rw-r--r--test/transform/resource/before/EqualsAndHashCodeOnRecord.java7
-rw-r--r--test/transform/resource/before/ExtensionMethodChain.java17
-rw-r--r--test/transform/resource/before/ExtensionMethodFunctional.java4
-rw-r--r--test/transform/resource/before/ExtensionMethodNonStaticAccess.java18
-rw-r--r--test/transform/resource/before/FieldDefaultsOnRecord.java5
-rw-r--r--test/transform/resource/before/FieldNameConstantsOnRecord.java9
-rw-r--r--test/transform/resource/before/GetterOnClass.java1
-rw-r--r--test/transform/resource/before/GetterOnRecord.java7
-rw-r--r--test/transform/resource/before/JacksonBuilderSingular.java1
-rw-r--r--test/transform/resource/before/JacksonJsonProperty.java1
-rw-r--r--test/transform/resource/before/JacksonizedBuilderComplex.java21
-rw-r--r--test/transform/resource/before/JacksonizedBuilderSimple.java1
-rw-r--r--test/transform/resource/before/JacksonizedSuperBuilderSimple.java1
-rw-r--r--test/transform/resource/before/JacksonizedSuperBuilderWithJsonDeserialize.java1
-rw-r--r--test/transform/resource/before/LoggerConfigOnRecord.java8
-rw-r--r--test/transform/resource/before/LoggerLog4j2.java1
-rw-r--r--test/transform/resource/before/LoggerSlf4jInvalidTopic.java5
-rw-r--r--test/transform/resource/before/LoggerSlf4jOnRecord.java7
-rw-r--r--test/transform/resource/before/NonNullExistingConstructorOnRecord.java9
-rw-r--r--test/transform/resource/before/NonNullOnParameter.java1
-rw-r--r--test/transform/resource/before/NonNullOnParameterAbstract.java1
-rw-r--r--test/transform/resource/before/NonNullOnRecord.java6
-rw-r--r--test/transform/resource/before/NonNullOnRecord2.java9
-rw-r--r--test/transform/resource/before/NonNullOnRecord3.java13
-rw-r--r--test/transform/resource/before/NonNullPlain.java1
-rw-r--r--test/transform/resource/before/NonNullWithAlternateException.java1
-rw-r--r--test/transform/resource/before/NonNullWithAssertion.java1
-rw-r--r--test/transform/resource/before/NonNullWithGuava.java1
-rw-r--r--test/transform/resource/before/NonNullWithJdk.java2
-rw-r--r--test/transform/resource/before/NonNullWithSneakyThrows.java1
-rw-r--r--test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java1
-rw-r--r--test/transform/resource/before/NullLibrary1.java1
-rw-r--r--test/transform/resource/before/NullLibrary2.java1
-rw-r--r--test/transform/resource/before/SetterOnClass.java1
-rw-r--r--test/transform/resource/before/SetterOnRecord.java7
-rw-r--r--test/transform/resource/before/StandardExceptions.java9
-rw-r--r--test/transform/resource/before/StaticConstructor.java1
-rw-r--r--test/transform/resource/before/SuperBuilderBasicToBuilder.java2
-rw-r--r--test/transform/resource/before/SuperBuilderCustomized.java1
-rw-r--r--test/transform/resource/before/SuperBuilderInitializer.java16
-rw-r--r--test/transform/resource/before/SuperBuilderOnRecord.java8
-rw-r--r--test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java2
-rw-r--r--test/transform/resource/before/SuperBuilderSingularCustomized.java9
-rw-r--r--test/transform/resource/before/SuperBuilderWithCustomBuilderClassName.java9
-rw-r--r--test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java1
-rw-r--r--test/transform/resource/before/SuperBuilderWithExistingConstructor.java5
-rw-r--r--test/transform/resource/before/SuperBuilderWithNonNull.java1
-rw-r--r--test/transform/resource/before/SynchronizedInRecord.java10
-rw-r--r--test/transform/resource/before/ToStringOnRecord.java7
-rw-r--r--test/transform/resource/before/UtilityClassOnRecord.java7
-rw-r--r--test/transform/resource/before/ValDelegateMethodReference.java1
-rw-r--r--test/transform/resource/before/ValInLambda.java11
-rw-r--r--test/transform/resource/before/ValWeirdTypes.java1
-rw-r--r--test/transform/resource/before/ValueCallSuper.java14
-rw-r--r--test/transform/resource/before/ValueOnRecord.java7
-rw-r--r--test/transform/resource/before/WithByNullAnnos.java1
-rw-r--r--test/transform/resource/before/WithByOnRecord.java7
-rw-r--r--test/transform/resource/before/WithByOnRecordComponent.java6
-rw-r--r--test/transform/resource/before/WithByTypes.java1
-rw-r--r--test/transform/resource/before/WithOnClass.java2
-rw-r--r--test/transform/resource/before/WithOnRecord.java7
-rw-r--r--test/transform/resource/before/WithOnRecordComponent.java6
-rw-r--r--test/transform/resource/before/WithPlain.java1
79 files changed, 372 insertions, 29 deletions
diff --git a/test/transform/resource/before/BuilderAccessWithGetter.java b/test/transform/resource/before/BuilderAccessWithGetter.java
new file mode 100644
index 00000000..38212ecf
--- /dev/null
+++ b/test/transform/resource/before/BuilderAccessWithGetter.java
@@ -0,0 +1,10 @@
+import lombok.AccessLevel;
+import lombok.Builder;
+import lombok.Getter;
+
+@Builder(access = AccessLevel.PRIVATE)
+public final class BuilderAccessWithGetter {
+
+ @Getter
+ private final String string;
+}
diff --git a/test/transform/resource/before/BuilderSimpleOnRecord.java b/test/transform/resource/before/BuilderSimpleOnRecord.java
new file mode 100644
index 00000000..fdf681e7
--- /dev/null
+++ b/test/transform/resource/before/BuilderSimpleOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import java.util.List;
+
+@lombok.Builder(access = lombok.AccessLevel.PROTECTED)
+public record BuilderSimpleOnRecord<T>(List<T> l, String a) {
+}
diff --git a/test/transform/resource/before/BuilderSingularNullBehavior1.java b/test/transform/resource/before/BuilderSingularNullBehavior1.java
index bcf473a4..add00ea7 100644
--- a/test/transform/resource/before/BuilderSingularNullBehavior1.java
+++ b/test/transform/resource/before/BuilderSingularNullBehavior1.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.addNullAnnotations = checkerframework
//CONF: lombok.nonNull.exceptionType = assertion
import java.util.List;
diff --git a/test/transform/resource/before/BuilderSingularNullBehavior2.java b/test/transform/resource/before/BuilderSingularNullBehavior2.java
index 7d1d0e57..dde4eea9 100644
--- a/test/transform/resource/before/BuilderSingularNullBehavior2.java
+++ b/test/transform/resource/before/BuilderSingularNullBehavior2.java
@@ -1,3 +1,4 @@
+//version 8: springframework dep is too new to run on j6
//CONF: lombok.addNullAnnotations = spring
//CONF: lombok.nonNull.exceptionType = JDK
import java.util.List;
diff --git a/test/transform/resource/before/BuilderSingularOnRecord.java b/test/transform/resource/before/BuilderSingularOnRecord.java
new file mode 100644
index 00000000..c34fdabd
--- /dev/null
+++ b/test/transform/resource/before/BuilderSingularOnRecord.java
@@ -0,0 +1,11 @@
+// version 14:
+
+import java.util.Collection;
+import java.util.List;
+
+import lombok.Builder;
+import lombok.Singular;
+
+@Builder
+public record BuilderSingularOnRecord<T>(@Singular List<T> children, @Singular Collection<? extends Number> scarves, @SuppressWarnings("all") @Singular("rawList") List rawList) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/BuilderWithNonNull.java b/test/transform/resource/before/BuilderWithNonNull.java
index 03a54326..b0c1d36a 100644
--- a/test/transform/resource/before/BuilderWithNonNull.java
+++ b/test/transform/resource/before/BuilderWithNonNull.java
@@ -1,3 +1,4 @@
+//version 8:
@lombok.Builder
class BuilderWithNonNull {
@lombok.NonNull
diff --git a/test/transform/resource/before/BuilderWithNonNullWithSetterPrefix.java b/test/transform/resource/before/BuilderWithNonNullWithSetterPrefix.java
index 8ef1f70e..7c1aa983 100644
--- a/test/transform/resource/before/BuilderWithNonNullWithSetterPrefix.java
+++ b/test/transform/resource/before/BuilderWithNonNullWithSetterPrefix.java
@@ -1,3 +1,4 @@
+//version 8:
@lombok.Builder(setterPrefix = "with")
class BuilderWithNonNullWithSetterPrefix {
@lombok.NonNull
diff --git a/test/transform/resource/before/CheckerFrameworkBasic.java b/test/transform/resource/before/CheckerFrameworkBasic.java
index fb43ad08..4bf1ac73 100644
--- a/test/transform/resource/before/CheckerFrameworkBasic.java
+++ b/test/transform/resource/before/CheckerFrameworkBasic.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: checkerframework = 4.0
import lombok.AllArgsConstructor;
import lombok.Data;
diff --git a/test/transform/resource/before/CheckerFrameworkBuilder.java b/test/transform/resource/before/CheckerFrameworkBuilder.java
index 440b80e9..0f24e1b7 100644
--- a/test/transform/resource/before/CheckerFrameworkBuilder.java
+++ b/test/transform/resource/before/CheckerFrameworkBuilder.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: checkerframework = 4.0
import java.util.List;
import lombok.Builder;
diff --git a/test/transform/resource/before/CheckerFrameworkSuperBuilder.java b/test/transform/resource/before/CheckerFrameworkSuperBuilder.java
index ed9e14cb..fefff676 100644
--- a/test/transform/resource/before/CheckerFrameworkSuperBuilder.java
+++ b/test/transform/resource/before/CheckerFrameworkSuperBuilder.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: checkerframework = 4.0
import java.util.List;
import lombok.Singular;
diff --git a/test/transform/resource/before/ConstructorsOnRecord.java b/test/transform/resource/before/ConstructorsOnRecord.java
new file mode 100644
index 00000000..003fc533
--- /dev/null
+++ b/test/transform/resource/before/ConstructorsOnRecord.java
@@ -0,0 +1,11 @@
+// version 14:
+
+import lombok.AllArgsConstructor;
+import lombok.NoArgsConstructor;
+import lombok.RequiredArgsConstructor;
+
+@AllArgsConstructor
+@RequiredArgsConstructor
+@NoArgsConstructor
+public record ConstructorsOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/ConstructorsWithAccessors.java b/test/transform/resource/before/ConstructorsWithAccessors.java
index e67a47ce..fc72be55 100644
--- a/test/transform/resource/before/ConstructorsWithAccessors.java
+++ b/test/transform/resource/before/ConstructorsWithAccessors.java
@@ -1,3 +1,4 @@
+//version 8:
@lombok.AllArgsConstructor @lombok.experimental.Accessors(prefix={"p", "_"}) class ConstructorsWithAccessors {
int plower;
int pUpper;
@@ -11,4 +12,3 @@
@lombok.NonNull Integer _huh;
@lombok.NonNull final Integer __huh2;
}
-
diff --git a/test/transform/resource/before/DataOnLocalClass.java b/test/transform/resource/before/DataOnLocalClass.java
index b1272b7e..e4fa4cd5 100644
--- a/test/transform/resource/before/DataOnLocalClass.java
+++ b/test/transform/resource/before/DataOnLocalClass.java
@@ -1,3 +1,4 @@
+//version 8:
import lombok.Data;
class DataOnLocalClass1 {
public static void main(String[] args) {
diff --git a/test/transform/resource/before/DataOnRecord.java b/test/transform/resource/before/DataOnRecord.java
new file mode 100644
index 00000000..caf14d52
--- /dev/null
+++ b/test/transform/resource/before/DataOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.Data;
+
+@Data
+public record DataOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java b/test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java
new file mode 100644
index 00000000..78138bbf
--- /dev/null
+++ b/test/transform/resource/before/DataWithOverrideEqualsAndHashCode.java
@@ -0,0 +1,18 @@
+import lombok.Data;
+
+class DataWithOverrideEqualsAndHashCode {
+ class Data1 {
+
+ }
+
+ @Data
+ class Data2 extends Data1 {
+ public int hashCode() {
+ return 42;
+ }
+
+ public boolean equals(Object other) {
+ return false;
+ }
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/EqualsAndHashCodeAnnotated.java b/test/transform/resource/before/EqualsAndHashCodeAnnotated.java
index d672b982..f65d7b5b 100644
--- a/test/transform/resource/before/EqualsAndHashCodeAnnotated.java
+++ b/test/transform/resource/before/EqualsAndHashCodeAnnotated.java
@@ -1,4 +1,4 @@
-//version 8
+//version 8:
import java.lang.annotation.*;
@lombok.EqualsAndHashCode
diff --git a/test/transform/resource/before/EqualsAndHashCodeOnRecord.java b/test/transform/resource/before/EqualsAndHashCodeOnRecord.java
new file mode 100644
index 00000000..84b808bb
--- /dev/null
+++ b/test/transform/resource/before/EqualsAndHashCodeOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.EqualsAndHashCode;
+
+@EqualsAndHashCode
+public record EqualsAndHashCodeOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/ExtensionMethodChain.java b/test/transform/resource/before/ExtensionMethodChain.java
new file mode 100644
index 00000000..f7960ed4
--- /dev/null
+++ b/test/transform/resource/before/ExtensionMethodChain.java
@@ -0,0 +1,17 @@
+import java.util.Arrays;
+import java.util.List;
+import lombok.experimental.ExtensionMethod;
+
+@ExtensionMethod(ExtensionMethodChain.Extensions.class)
+class ExtensionMethodChain {
+
+ public void test() {
+ "1".intValue().intValue();
+ }
+
+ static class Extensions {
+ public static Integer intValue(String s) {
+ return Integer.valueOf(s);
+ }
+ }
+}
diff --git a/test/transform/resource/before/ExtensionMethodFunctional.java b/test/transform/resource/before/ExtensionMethodFunctional.java
index a9e7dd9f..8586dd7a 100644
--- a/test/transform/resource/before/ExtensionMethodFunctional.java
+++ b/test/transform/resource/before/ExtensionMethodFunctional.java
@@ -16,7 +16,7 @@ class ExtensionMethodFunctional {
test.consume(s -> System.out.println("1: " + s), s -> System.out.println("2: " + s));
test.consume(System.out::println, System.out::println);
- Stream.of("a", "b", "c").map(String::toUpperCase).toList();
+ Stream.of("a", "b", "c").map(String::toUpperCase).toList1();
List<Integer> i2 = Stream.of("a", "b", "c").map(String::toUpperCase).toList2();
}
@@ -36,7 +36,7 @@ class ExtensionMethodFunctional {
}
}
- public static <T> List<T> toList(Stream<T> stream) {
+ public static <T> List<T> toList1(Stream<T> stream) {
return (List<T>) stream.collect(Collectors.toList());
}
diff --git a/test/transform/resource/before/ExtensionMethodNonStaticAccess.java b/test/transform/resource/before/ExtensionMethodNonStaticAccess.java
new file mode 100644
index 00000000..0d317c35
--- /dev/null
+++ b/test/transform/resource/before/ExtensionMethodNonStaticAccess.java
@@ -0,0 +1,18 @@
+//issue #2752: this test triggers an indirect static access and a non static access warning for the same method call
+//platform ecj,eclipse
+class ExtensionMethodNonStaticAccess {
+ public void method(){
+ Derived derived = new Derived();
+ derived.staticMethod();
+ }
+}
+
+class Base {
+ static String staticMethod() {
+ return "";
+ }
+}
+
+class Derived extends Base {
+
+} \ No newline at end of file
diff --git a/test/transform/resource/before/FieldDefaultsOnRecord.java b/test/transform/resource/before/FieldDefaultsOnRecord.java
new file mode 100644
index 00000000..94089b41
--- /dev/null
+++ b/test/transform/resource/before/FieldDefaultsOnRecord.java
@@ -0,0 +1,5 @@
+// version 14:
+
+@lombok.experimental.FieldDefaults(makeFinal = true)
+public record FieldDefaultsOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/FieldNameConstantsOnRecord.java b/test/transform/resource/before/FieldNameConstantsOnRecord.java
new file mode 100644
index 00000000..876bb853
--- /dev/null
+++ b/test/transform/resource/before/FieldNameConstantsOnRecord.java
@@ -0,0 +1,9 @@
+// version 14:
+
+import lombok.experimental.FieldNameConstants;
+import lombok.AccessLevel;
+
+@FieldNameConstants(level = AccessLevel.PACKAGE)
+public record FieldNameConstantsOnRecord(String iAmADvdPlayer, int $skipMe, @FieldNameConstants.Exclude int andMe, String butPrintMePlease) {
+ static double skipMeToo;
+} \ No newline at end of file
diff --git a/test/transform/resource/before/GetterOnClass.java b/test/transform/resource/before/GetterOnClass.java
index 0a38b386..f44d2556 100644
--- a/test/transform/resource/before/GetterOnClass.java
+++ b/test/transform/resource/before/GetterOnClass.java
@@ -1,3 +1,4 @@
+//version 8:
@lombok.Getter
class GetterOnClass1 {
@lombok.Getter(lombok.AccessLevel.NONE)
diff --git a/test/transform/resource/before/GetterOnRecord.java b/test/transform/resource/before/GetterOnRecord.java
new file mode 100644
index 00000000..0addbfc6
--- /dev/null
+++ b/test/transform/resource/before/GetterOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.Getter;
+
+@Getter
+public record GetterOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/JacksonBuilderSingular.java b/test/transform/resource/before/JacksonBuilderSingular.java
index c179c760..20d6979a 100644
--- a/test/transform/resource/before/JacksonBuilderSingular.java
+++ b/test/transform/resource/before/JacksonBuilderSingular.java
@@ -1,3 +1,4 @@
+//version 8: Jackson deps are at least Java7+.
import java.util.List;
import java.util.Map;
diff --git a/test/transform/resource/before/JacksonJsonProperty.java b/test/transform/resource/before/JacksonJsonProperty.java
index f0b7b2f2..c0bccfae 100644
--- a/test/transform/resource/before/JacksonJsonProperty.java
+++ b/test/transform/resource/before/JacksonJsonProperty.java
@@ -1,3 +1,4 @@
+//version 8: Jackson deps are at least Java7+.
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
diff --git a/test/transform/resource/before/JacksonizedBuilderComplex.java b/test/transform/resource/before/JacksonizedBuilderComplex.java
index dec1cd3b..5942926d 100644
--- a/test/transform/resource/before/JacksonizedBuilderComplex.java
+++ b/test/transform/resource/before/JacksonizedBuilderComplex.java
@@ -1,10 +1,11 @@
-//CONF: lombok.builder.className = Test*Name
-import java.util.List;
-import lombok.Builder;
-import lombok.extern.jackson.Jacksonized;
-
-class JacksonizedBuilderComplex {
- @Jacksonized
- @Builder(buildMethodName = "execute", setterPrefix = "with")
- private static <T extends Number> void testVoidWithGenerics(T number, int arg2, String arg3, JacksonizedBuilderComplex selfRef) {}
-}
+//version 8: Jackson deps are at least Java7+.
+//CONF: lombok.builder.className = Test*Name
+import java.util.List;
+import lombok.Builder;
+import lombok.extern.jackson.Jacksonized;
+
+class JacksonizedBuilderComplex {
+ @Jacksonized
+ @Builder(buildMethodName = "execute", setterPrefix = "with")
+ private static <T extends Number> void testVoidWithGenerics(T number, int arg2, String arg3, JacksonizedBuilderComplex selfRef) {}
+}
diff --git a/test/transform/resource/before/JacksonizedBuilderSimple.java b/test/transform/resource/before/JacksonizedBuilderSimple.java
index 6da015ec..b81a0f5d 100644
--- a/test/transform/resource/before/JacksonizedBuilderSimple.java
+++ b/test/transform/resource/before/JacksonizedBuilderSimple.java
@@ -1,3 +1,4 @@
+//version 8: Jackson deps are at least Java7+.
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
diff --git a/test/transform/resource/before/JacksonizedSuperBuilderSimple.java b/test/transform/resource/before/JacksonizedSuperBuilderSimple.java
index 1e3bd0fc..23e52c97 100644
--- a/test/transform/resource/before/JacksonizedSuperBuilderSimple.java
+++ b/test/transform/resource/before/JacksonizedSuperBuilderSimple.java
@@ -1,3 +1,4 @@
+//version 8: Jackson deps are at least Java7+.
public class JacksonizedSuperBuilderSimple {
@lombok.extern.jackson.Jacksonized
@lombok.experimental.SuperBuilder
diff --git a/test/transform/resource/before/JacksonizedSuperBuilderWithJsonDeserialize.java b/test/transform/resource/before/JacksonizedSuperBuilderWithJsonDeserialize.java
index 0c80d1a6..ac0dba07 100644
--- a/test/transform/resource/before/JacksonizedSuperBuilderWithJsonDeserialize.java
+++ b/test/transform/resource/before/JacksonizedSuperBuilderWithJsonDeserialize.java
@@ -1,3 +1,4 @@
+//version 8: Jackson deps are at least Java7+.
@lombok.extern.jackson.Jacksonized
@lombok.experimental.SuperBuilder
@com.fasterxml.jackson.databind.annotation.JsonDeserialize
diff --git a/test/transform/resource/before/LoggerConfigOnRecord.java b/test/transform/resource/before/LoggerConfigOnRecord.java
new file mode 100644
index 00000000..b30392b3
--- /dev/null
+++ b/test/transform/resource/before/LoggerConfigOnRecord.java
@@ -0,0 +1,8 @@
+// CONF: lombok.log.fieldIsStatic = false
+// version 14:
+
+import lombok.extern.slf4j.Slf4j;
+
+@Slf4j
+public record LoggerConfigOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerLog4j2.java b/test/transform/resource/before/LoggerLog4j2.java
index 10b3aae5..1dd48d7a 100644
--- a/test/transform/resource/before/LoggerLog4j2.java
+++ b/test/transform/resource/before/LoggerLog4j2.java
@@ -1,3 +1,4 @@
+//version 8:
import lombok.extern.log4j.Log4j2;
@lombok.extern.log4j.Log4j2
diff --git a/test/transform/resource/before/LoggerSlf4jInvalidTopic.java b/test/transform/resource/before/LoggerSlf4jInvalidTopic.java
deleted file mode 100644
index eed02f01..00000000
--- a/test/transform/resource/before/LoggerSlf4jInvalidTopic.java
+++ /dev/null
@@ -1,5 +0,0 @@
-import lombok.extern.slf4j.Slf4j;
-
-@Slf4j(topic=42)
-class LoggerSlf4jWithIntegerTopic {
-} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerSlf4jOnRecord.java b/test/transform/resource/before/LoggerSlf4jOnRecord.java
new file mode 100644
index 00000000..26359fd6
--- /dev/null
+++ b/test/transform/resource/before/LoggerSlf4jOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.extern.slf4j.Slf4j;
+
+@Slf4j
+public record LoggerSlf4jOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/NonNullExistingConstructorOnRecord.java b/test/transform/resource/before/NonNullExistingConstructorOnRecord.java
new file mode 100644
index 00000000..6a00e2c4
--- /dev/null
+++ b/test/transform/resource/before/NonNullExistingConstructorOnRecord.java
@@ -0,0 +1,9 @@
+// version 14:
+
+import lombok.NonNull;
+
+public record NonNullExistingConstructorOnRecord(@NonNull String a, @NonNull String b) {
+ public NonNullExistingConstructorOnRecord(@NonNull String b) {
+ this("default", b);
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/NonNullOnParameter.java b/test/transform/resource/before/NonNullOnParameter.java
index 22aceac7..43175832 100644
--- a/test/transform/resource/before/NonNullOnParameter.java
+++ b/test/transform/resource/before/NonNullOnParameter.java
@@ -1,3 +1,4 @@
+//version 8:
class NonNullOnParameter extends Thread {
NonNullOnParameter(@lombok.NonNull String arg) {
this(arg, "");
diff --git a/test/transform/resource/before/NonNullOnParameterAbstract.java b/test/transform/resource/before/NonNullOnParameterAbstract.java
index 16691184..0508be42 100644
--- a/test/transform/resource/before/NonNullOnParameterAbstract.java
+++ b/test/transform/resource/before/NonNullOnParameterAbstract.java
@@ -1,3 +1,4 @@
+//version 8:
abstract class NonNullOnParameterAbstract {
public void test(@lombok.NonNull String arg) {
System.out.println("Hey");
diff --git a/test/transform/resource/before/NonNullOnRecord.java b/test/transform/resource/before/NonNullOnRecord.java
new file mode 100644
index 00000000..ba6121a6
--- /dev/null
+++ b/test/transform/resource/before/NonNullOnRecord.java
@@ -0,0 +1,6 @@
+// version 14:
+
+import lombok.NonNull;
+
+public record NonNullOnRecord(@NonNull String a, @NonNull String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/NonNullOnRecord2.java b/test/transform/resource/before/NonNullOnRecord2.java
new file mode 100644
index 00000000..3a4eacd4
--- /dev/null
+++ b/test/transform/resource/before/NonNullOnRecord2.java
@@ -0,0 +1,9 @@
+// version 14:
+
+import lombok.NonNull;
+
+record NonNullOnRecord2(@NonNull String a) {
+ public NonNullOnRecord2 {
+ System.out.println("Hello");
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/NonNullOnRecord3.java b/test/transform/resource/before/NonNullOnRecord3.java
new file mode 100644
index 00000000..24198002
--- /dev/null
+++ b/test/transform/resource/before/NonNullOnRecord3.java
@@ -0,0 +1,13 @@
+// version 14:
+
+import lombok.NonNull;
+
+public record NonNullOnRecord3(@NonNull String a) {
+ public NonNullOnRecord3(String a) {
+ this.a = a;
+ }
+
+ public void method(@NonNull String param) {
+ String asd = "a";
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/NonNullPlain.java b/test/transform/resource/before/NonNullPlain.java
index a438d1d4..1a016fb4 100644
--- a/test/transform/resource/before/NonNullPlain.java
+++ b/test/transform/resource/before/NonNullPlain.java
@@ -1,3 +1,4 @@
+//version 8:
import java.lang.annotation.*;
@lombok.RequiredArgsConstructor
diff --git a/test/transform/resource/before/NonNullWithAlternateException.java b/test/transform/resource/before/NonNullWithAlternateException.java
index c47f5727..28b7be6d 100644
--- a/test/transform/resource/before/NonNullWithAlternateException.java
+++ b/test/transform/resource/before/NonNullWithAlternateException.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.nonNull.exceptionType = IllegalArgumentException
public class NonNullWithAlternateException {
diff --git a/test/transform/resource/before/NonNullWithAssertion.java b/test/transform/resource/before/NonNullWithAssertion.java
index c3d271a6..1e282ffa 100644
--- a/test/transform/resource/before/NonNullWithAssertion.java
+++ b/test/transform/resource/before/NonNullWithAssertion.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.nonNull.exceptionType = Assertion
public class NonNullWithAssertion {
diff --git a/test/transform/resource/before/NonNullWithGuava.java b/test/transform/resource/before/NonNullWithGuava.java
index dc877daa..e592ee14 100644
--- a/test/transform/resource/before/NonNullWithGuava.java
+++ b/test/transform/resource/before/NonNullWithGuava.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.nonNull.exceptionType = Guava
import static com.google.common.base.Preconditions.*;
public class NonNullWithGuava {
diff --git a/test/transform/resource/before/NonNullWithJdk.java b/test/transform/resource/before/NonNullWithJdk.java
index c8cbf2ee..5c3d03a5 100644
--- a/test/transform/resource/before/NonNullWithJdk.java
+++ b/test/transform/resource/before/NonNullWithJdk.java
@@ -1,4 +1,4 @@
-//version 7:
+//version 8:
//CONF: lombok.nonNull.exceptionType = Jdk
import static java.util.Objects.*;
public class NonNullWithJdk {
diff --git a/test/transform/resource/before/NonNullWithSneakyThrows.java b/test/transform/resource/before/NonNullWithSneakyThrows.java
index 35f78a7f..00c03f04 100644
--- a/test/transform/resource/before/NonNullWithSneakyThrows.java
+++ b/test/transform/resource/before/NonNullWithSneakyThrows.java
@@ -1,3 +1,4 @@
+//version 8:
class NonNullWithSneakyThrows {
@lombok.SneakyThrows void test(@lombok.NonNull String in) {
System.out.println(in);
diff --git a/test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java b/test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java
index 39bb0fcc..eea118cb 100644
--- a/test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java
+++ b/test/transform/resource/before/NullAnnotatedCheckerFrameworkSuperBuilder.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.addNullAnnotations = checkerframework
import java.util.List;
import lombok.Singular;
diff --git a/test/transform/resource/before/NullLibrary1.java b/test/transform/resource/before/NullLibrary1.java
index 95433270..d57d3d09 100644
--- a/test/transform/resource/before/NullLibrary1.java
+++ b/test/transform/resource/before/NullLibrary1.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.addNullAnnotations = eclipse
@lombok.EqualsAndHashCode
@lombok.ToString
diff --git a/test/transform/resource/before/NullLibrary2.java b/test/transform/resource/before/NullLibrary2.java
index 17b1e6e0..6b0ce4b0 100644
--- a/test/transform/resource/before/NullLibrary2.java
+++ b/test/transform/resource/before/NullLibrary2.java
@@ -1,3 +1,4 @@
+//version 8: springframework dep is too new to run on j6
//CONF: lombok.addNullAnnotations = spring
@lombok.EqualsAndHashCode
@lombok.ToString
diff --git a/test/transform/resource/before/SetterOnClass.java b/test/transform/resource/before/SetterOnClass.java
index a7629ff0..b7ab4177 100644
--- a/test/transform/resource/before/SetterOnClass.java
+++ b/test/transform/resource/before/SetterOnClass.java
@@ -1,3 +1,4 @@
+//version 8:
@lombok.Setter
class SetterOnClass1 {
@lombok.Setter(lombok.AccessLevel.NONE)
diff --git a/test/transform/resource/before/SetterOnRecord.java b/test/transform/resource/before/SetterOnRecord.java
new file mode 100644
index 00000000..97e1a966
--- /dev/null
+++ b/test/transform/resource/before/SetterOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.Setter;
+
+@Setter
+public record SetterOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/StandardExceptions.java b/test/transform/resource/before/StandardExceptions.java
new file mode 100644
index 00000000..1316011d
--- /dev/null
+++ b/test/transform/resource/before/StandardExceptions.java
@@ -0,0 +1,9 @@
+import lombok.AccessLevel;
+import lombok.experimental.StandardException;
+
+@StandardException class EmptyException extends Exception {
+}
+@StandardException(access = AccessLevel.PROTECTED) class NoArgsException extends Exception {
+ public NoArgsException() {
+ }
+}
diff --git a/test/transform/resource/before/StaticConstructor.java b/test/transform/resource/before/StaticConstructor.java
index eff1fa9b..7b720c6f 100644
--- a/test/transform/resource/before/StaticConstructor.java
+++ b/test/transform/resource/before/StaticConstructor.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.addNullAnnotations = checkerframework
import lombok.AllArgsConstructor;
@AllArgsConstructor(staticName = "of")
diff --git a/test/transform/resource/before/SuperBuilderBasicToBuilder.java b/test/transform/resource/before/SuperBuilderBasicToBuilder.java
index 93161443..bd97876e 100644
--- a/test/transform/resource/before/SuperBuilderBasicToBuilder.java
+++ b/test/transform/resource/before/SuperBuilderBasicToBuilder.java
@@ -15,7 +15,7 @@ public class SuperBuilderBasicToBuilder {
private int method() {
return 2;
}
-
+
private static String staticMethod(Parent instance) {
return "staticMethod";
}
diff --git a/test/transform/resource/before/SuperBuilderCustomized.java b/test/transform/resource/before/SuperBuilderCustomized.java
index 8e641d90..652d0865 100644
--- a/test/transform/resource/before/SuperBuilderCustomized.java
+++ b/test/transform/resource/before/SuperBuilderCustomized.java
@@ -1,3 +1,4 @@
+//version 8: Javac 6 will error out due to `ChildBuilder` not existing before properly running lombok. Giving j6 support status, not worth fixing.
import java.util.List;
public class SuperBuilderCustomized {
diff --git a/test/transform/resource/before/SuperBuilderInitializer.java b/test/transform/resource/before/SuperBuilderInitializer.java
new file mode 100644
index 00000000..966a4daf
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderInitializer.java
@@ -0,0 +1,16 @@
+import lombok.experimental.SuperBuilder;
+
+class SuperBuilderInitializer {
+ @SuperBuilder
+ public static class One {
+ private String world;
+ {
+ world = "Hello";
+ }
+
+ private static final String world2;
+ static {
+ world2 = "Hello";
+ }
+ }
+}
diff --git a/test/transform/resource/before/SuperBuilderOnRecord.java b/test/transform/resource/before/SuperBuilderOnRecord.java
new file mode 100644
index 00000000..23e5efac
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderOnRecord.java
@@ -0,0 +1,8 @@
+// skip compare content
+// version 14:
+
+import lombok.experimental.SuperBuilder;
+
+@SuperBuilder
+record SuperBuilderOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java b/test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java
index d26352d2..097f4e60 100644
--- a/test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java
+++ b/test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java
@@ -1,4 +1,4 @@
-//VERSION 8:
+//version 8:
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.util.Set;
diff --git a/test/transform/resource/before/SuperBuilderSingularCustomized.java b/test/transform/resource/before/SuperBuilderSingularCustomized.java
new file mode 100644
index 00000000..86b6022a
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderSingularCustomized.java
@@ -0,0 +1,9 @@
+import java.util.Set;
+@lombok.experimental.SuperBuilder
+class SuperBuilderSingularCustomized {
+ @lombok.Singular private Set<String> foos;
+ public static abstract class SuperBuilderSingularCustomizedBuilder<C extends SuperBuilderSingularCustomized, B extends SuperBuilderSingularCustomized.SuperBuilderSingularCustomizedBuilder<C, B>> {
+ public B custom(final String value) {
+ return self();
+ }
+ }}
diff --git a/test/transform/resource/before/SuperBuilderWithCustomBuilderClassName.java b/test/transform/resource/before/SuperBuilderWithCustomBuilderClassName.java
new file mode 100644
index 00000000..23590045
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderWithCustomBuilderClassName.java
@@ -0,0 +1,9 @@
+//CONF: lombok.builder.className=Builder
+class SuperBuilderWithCustomBuilderClassName {
+ @lombok.experimental.SuperBuilder
+ static class SuperClass {
+ }
+ @lombok.experimental.SuperBuilder
+ static class SubClass extends SuperClass {
+ }
+}
diff --git a/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java b/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java
index d52cbded..b828eafe 100644
--- a/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java
+++ b/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java
@@ -1,3 +1,4 @@
+//version 8: Javac 6 will error out due to `ChildBuilder` not existing before properly running lombok. Giving j6 support status, not worth fixing.
import java.util.List;
public class SuperBuilderWithCustomBuilderMethod {
diff --git a/test/transform/resource/before/SuperBuilderWithExistingConstructor.java b/test/transform/resource/before/SuperBuilderWithExistingConstructor.java
new file mode 100644
index 00000000..d6bfe2ec
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderWithExistingConstructor.java
@@ -0,0 +1,5 @@
+@lombok.experimental.SuperBuilder
+public class SuperBuilderWithExistingConstructor {
+ public SuperBuilderWithExistingConstructor() {
+ }
+}
diff --git a/test/transform/resource/before/SuperBuilderWithNonNull.java b/test/transform/resource/before/SuperBuilderWithNonNull.java
index 34668bbc..7287c688 100644
--- a/test/transform/resource/before/SuperBuilderWithNonNull.java
+++ b/test/transform/resource/before/SuperBuilderWithNonNull.java
@@ -1,3 +1,4 @@
+//version 8:
import java.util.List;
public class SuperBuilderWithNonNull {
diff --git a/test/transform/resource/before/SynchronizedInRecord.java b/test/transform/resource/before/SynchronizedInRecord.java
new file mode 100644
index 00000000..0569fd5e
--- /dev/null
+++ b/test/transform/resource/before/SynchronizedInRecord.java
@@ -0,0 +1,10 @@
+// version 14:
+
+import lombok.Synchronized;
+
+public record SynchronizedInRecord(String a, String b) {
+ @Synchronized
+ public void foo() {
+ String foo = "bar";
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/ToStringOnRecord.java b/test/transform/resource/before/ToStringOnRecord.java
new file mode 100644
index 00000000..2d3ae039
--- /dev/null
+++ b/test/transform/resource/before/ToStringOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.ToString;
+
+@ToString
+public record ToStringOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/UtilityClassOnRecord.java b/test/transform/resource/before/UtilityClassOnRecord.java
new file mode 100644
index 00000000..4d73a166
--- /dev/null
+++ b/test/transform/resource/before/UtilityClassOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.experimental.UtilityClass;
+
+@UtilityClass
+public record UtilityClassOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/ValDelegateMethodReference.java b/test/transform/resource/before/ValDelegateMethodReference.java
index 21b781aa..3d1f082c 100644
--- a/test/transform/resource/before/ValDelegateMethodReference.java
+++ b/test/transform/resource/before/ValDelegateMethodReference.java
@@ -1,3 +1,4 @@
+//version 8:
//platform !eclipse: Requires a 'full' eclipse with intialized workspace, and we don't (yet) have that set up properly in the test run.
import lombok.Getter;
import lombok.Setter;
diff --git a/test/transform/resource/before/ValInLambda.java b/test/transform/resource/before/ValInLambda.java
index a5364f8e..6750d045 100644
--- a/test/transform/resource/before/ValInLambda.java
+++ b/test/transform/resource/before/ValInLambda.java
@@ -1,5 +1,8 @@
// version 8:
+import java.util.function.Function;
+import java.util.function.Supplier;
+
import lombok.val;
class ValInLambda {
@@ -25,4 +28,12 @@ class ValInLambda {
lombok.val fooInner = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
};
}
+
+ public void inParameter() {
+ val foo = (Function<Supplier<String>, String>) s -> s.get();
+ val foo2 = foo.apply(() -> {
+ val bar = "";
+ return bar;
+ });
+ }
}
diff --git a/test/transform/resource/before/ValWeirdTypes.java b/test/transform/resource/before/ValWeirdTypes.java
index 8dd63e86..f62feca6 100644
--- a/test/transform/resource/before/ValWeirdTypes.java
+++ b/test/transform/resource/before/ValWeirdTypes.java
@@ -1,3 +1,4 @@
+// version 8: In java6/7, lub types worked differently, so, the `arraysAsList` method has a slightly different inferred type there.
import java.math.BigDecimal;
import java.util.*;
import lombok.val;
diff --git a/test/transform/resource/before/ValueCallSuper.java b/test/transform/resource/before/ValueCallSuper.java
index e236b404..bf561998 100644
--- a/test/transform/resource/before/ValueCallSuper.java
+++ b/test/transform/resource/before/ValueCallSuper.java
@@ -1,7 +1,7 @@
-//CONF: lombok.equalsAndHashCode.callSuper = call
-
-class ValueParent {
-}
-@lombok.Value
-class ValueCallSuper extends ValueParent {
-}
+//CONF: lombok.equalsAndHashCode.callSuper = call
+
+class ValueParent {
+}
+@lombok.Value
+class ValueCallSuper extends ValueParent {
+}
diff --git a/test/transform/resource/before/ValueOnRecord.java b/test/transform/resource/before/ValueOnRecord.java
new file mode 100644
index 00000000..64f685be
--- /dev/null
+++ b/test/transform/resource/before/ValueOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.Value;
+
+@Value
+public record ValueOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/WithByNullAnnos.java b/test/transform/resource/before/WithByNullAnnos.java
index 3fd8087f..a3ef6ac3 100644
--- a/test/transform/resource/before/WithByNullAnnos.java
+++ b/test/transform/resource/before/WithByNullAnnos.java
@@ -1,3 +1,4 @@
+//version 8:
//CONF: lombok.addNullAnnotations=checkerframework
import java.util.List;
@lombok.RequiredArgsConstructor
diff --git a/test/transform/resource/before/WithByOnRecord.java b/test/transform/resource/before/WithByOnRecord.java
new file mode 100644
index 00000000..8558d9a7
--- /dev/null
+++ b/test/transform/resource/before/WithByOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.experimental.WithBy;
+
+@WithBy
+public record WithByOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/WithByOnRecordComponent.java b/test/transform/resource/before/WithByOnRecordComponent.java
new file mode 100644
index 00000000..48bd66ca
--- /dev/null
+++ b/test/transform/resource/before/WithByOnRecordComponent.java
@@ -0,0 +1,6 @@
+// version 14:
+
+import lombok.experimental.WithBy;
+
+public record WithByOnRecordComponent(@WithBy String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/WithByTypes.java b/test/transform/resource/before/WithByTypes.java
index 9d2fe358..e33b0dd6 100644
--- a/test/transform/resource/before/WithByTypes.java
+++ b/test/transform/resource/before/WithByTypes.java
@@ -1,3 +1,4 @@
+//version 8:
@lombok.RequiredArgsConstructor
@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE, makeFinal = true)
@lombok.experimental.WithBy
diff --git a/test/transform/resource/before/WithOnClass.java b/test/transform/resource/before/WithOnClass.java
index a6215b54..fb6350e7 100644
--- a/test/transform/resource/before/WithOnClass.java
+++ b/test/transform/resource/before/WithOnClass.java
@@ -1,3 +1,5 @@
+//version 8:
+
@lombok.With
class WithOnClass1 {
@lombok.With(lombok.AccessLevel.NONE)
diff --git a/test/transform/resource/before/WithOnRecord.java b/test/transform/resource/before/WithOnRecord.java
new file mode 100644
index 00000000..99e77630
--- /dev/null
+++ b/test/transform/resource/before/WithOnRecord.java
@@ -0,0 +1,7 @@
+// version 14:
+
+import lombok.With;
+
+@With
+public record WithOnRecord(String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/WithOnRecordComponent.java b/test/transform/resource/before/WithOnRecordComponent.java
new file mode 100644
index 00000000..d8461b8b
--- /dev/null
+++ b/test/transform/resource/before/WithOnRecordComponent.java
@@ -0,0 +1,6 @@
+// version 14:
+
+import lombok.With;
+
+public record WithOnRecordComponent(@With String a, String b) {
+} \ No newline at end of file
diff --git a/test/transform/resource/before/WithPlain.java b/test/transform/resource/before/WithPlain.java
index 4f048242..9be8d4d5 100644
--- a/test/transform/resource/before/WithPlain.java
+++ b/test/transform/resource/before/WithPlain.java
@@ -1,3 +1,4 @@
+//version 8: springframework dep is too new to run on j6
//CONF: lombok.addNullAnnotations = spring
import lombok.With;
class WithPlain {