forked from projectlombok/lombok
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixes projectlombok#2995] Skip records for field defaults via config
- Loading branch information
Showing
5 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
test/transform/resource/after-delombok/FieldDefaultsViaConfigOnRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// version 14: | ||
public record FieldDefaultsViaConfigOnRecord(String a, String b) { | ||
} |
10 changes: 10 additions & 0 deletions
10
test/transform/resource/after-ecj/FieldDefaultsViaConfigOnRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// version 14: | ||
public record FieldDefaultsViaConfigOnRecord(String a, String b) { | ||
/* Implicit */ private final String a; | ||
/* Implicit */ private final String b; | ||
public FieldDefaultsViaConfigOnRecord(String a, String b) { | ||
super(); | ||
.a = a; | ||
.b = b; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/transform/resource/before/FieldDefaultsViaConfigOnRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// version 14: | ||
//CONF: lombok.fieldDefaults.defaultFinal = true | ||
//CONF: lombok.fieldDefaults.defaultPrivate = true | ||
//unchanged | ||
|
||
public record FieldDefaultsViaConfigOnRecord(String a, String b) { | ||
} |