diff options
Diffstat (limited to 'src/core/lombok/Setter.java')
-rw-r--r-- | src/core/lombok/Setter.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/lombok/Setter.java b/src/core/lombok/Setter.java index 22622520..ca3263a7 100644 --- a/src/core/lombok/Setter.java +++ b/src/core/lombok/Setter.java @@ -26,6 +26,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import lombok.core.FlagUsageType; +import lombok.core.configuration.ConfigurationKey; + /** * Put on any field to make lombok build a standard setter. * <p> @@ -54,6 +57,13 @@ import java.lang.annotation.Target; @Retention(RetentionPolicy.SOURCE) public @interface Setter { /** + * lombok configuration: {@code lombok.Setter.flagUsage} = {@code WARNING} | {@code ERROR}. + * + * If set, <em>any</em> usage of {@code @Setter} results in a warning / error. + */ + ConfigurationKey<FlagUsageType> FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.Setter.flagUsage") {}; + + /** * If you want your setter to be non-public, you can specify an alternate access level here. */ lombok.AccessLevel value() default lombok.AccessLevel.PUBLIC; |