forked from projectlombok/lombok
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixes projectlombok#2848] Support onX.flagUsage configuration key
- Loading branch information
Showing
9 changed files
with
124 additions
and
55 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
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
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
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,21 @@ | ||
//conf: lombok.onX.flagUsage = warning | ||
//skip compare content: We're just checking if the flagUsage key works. | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@Getter(onMethod_ = @Deprecated) | ||
@Setter(onMethod_ = @Deprecated, onParam_ = @Deprecated) | ||
@NoArgsConstructor(onConstructor_ = @Deprecated) | ||
@AllArgsConstructor(onConstructor_ = @Deprecated) | ||
public class OnXFlagUsage { | ||
private final String a = ""; | ||
private String b; | ||
} | ||
|
||
@RequiredArgsConstructor(onConstructor_ = @Deprecated) | ||
class OnXFlagUsage2 { | ||
private final String a = ""; | ||
} |
6 changes: 6 additions & 0 deletions
6
test/transform/resource/messages-delombok/OnXFlagUsage.java.messages
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,6 @@ | ||
9 Use of @Getter(onMethod=...) is flagged according to lombok configuration. | ||
10 Use of @Setter(onMethod=...) is flagged according to lombok configuration. | ||
10 Use of @Setter(onParam=...) is flagged according to lombok configuration. | ||
11 Use of @NoArgsConstructor(onConstructor=...) is flagged according to lombok configuration. | ||
12 Use of @AllArgsConstructor(onConstructor=...) is flagged according to lombok configuration. | ||
18 Use of @RequiredArgsConstructor(onConstructor=...) is flagged according to lombok configuration. |
6 changes: 6 additions & 0 deletions
6
test/transform/resource/messages-ecj/OnXFlagUsage.java.messages
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,6 @@ | ||
9 Use of @Getter(onMethod=...) is flagged according to lombok configuration. | ||
10 Use of @Setter(onMethod=...) is flagged according to lombok configuration. | ||
10 Use of @Setter(onParam=...) is flagged according to lombok configuration. | ||
11 Use of @NoArgsConstructor(onConstructor=...) is flagged according to lombok configuration. | ||
12 Use of @AllArgsConstructor(onConstructor=...) is flagged according to lombok configuration. | ||
18 Use of @RequiredArgsConstructor(onConstructor=...) is flagged according to lombok configuration. |