Rework test to avoid diverging eclipse output

If a record is part of a class some eclipse/ecj versions add the
implicit static modifier to the output and some doesn't. If the record
is nested in another record this doesn't happen.
This commit is contained in:
Rawi01 committed 2023-12-17 13:35:55 +01:00
1 parent fb09a99fae
commit 27cd3e53aa
3 files changed
+3 -6

No files matched your search

@@ -1,5 +1,5 @@
import lombok.With;
public class WithOnNestedRecord<T> {
public record WithOnNestedRecord()<T> {
public @With record Nested(String a, String b) {
/* Implicit */ private final String a;
/* Implicit */ private final String b;
@@ -17,7 +17,4 @@ public class WithOnNestedRecord<T> {
return ((this.b == b) ? this : new WithOnNestedRecord.Nested(this.a, b));
}
}
public WithOnNestedRecord() {
super();
}
}