mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
[fixes #2848] Support onX.flagUsage configuration key
This commit is contained in:
1 parent
9dc7e7f0cf
commit
3e57b2a0b4
9 files changed
+124
-55
No files matched your search
@@ -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 = "";
|
||||
}
|
||||
Reference in new issue
Block a user