mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
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:
1 parent
fb09a99fae
commit
27cd3e53aa
3 files changed
+3
-6
No files matched your search
@@ -1,5 +1,5 @@
|
||||
// version 14:
|
||||
public class WithOnNestedRecord<T> {
|
||||
public record WithOnNestedRecord<T>() {
|
||||
|
||||
public record Nested(String a, String b) {
|
||||
/**
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// version 14:
|
||||
import lombok.With;
|
||||
|
||||
public class WithOnNestedRecord<T> {
|
||||
public record WithOnNestedRecord<T>() {
|
||||
@With
|
||||
public record Nested(String a, String b) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user