aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/Value.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lombok/Value.java')
-rw-r--r--src/core/lombok/Value.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/lombok/Value.java b/src/core/lombok/Value.java
index 2cffe15b..4f4caeb3 100644
--- a/src/core/lombok/Value.java
+++ b/src/core/lombok/Value.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;
+
/**
* Generates a lot of code which fits with a class that is a representation of an immutable entity.
* <p>
@@ -44,6 +47,13 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.SOURCE)
public @interface Value {
/**
+ * lombok configuration: {@code lombok.Value.flagUsage} = {@code WARNING} | {@code ERROR}.
+ *
+ * If set, <em>any</em> usage of {@code @Value} results in a warning / error.
+ */
+ ConfigurationKey<FlagUsageType> FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.Value.flagUsage") {};
+
+ /**
* If you specify a static constructor name, then the generated constructor will be private, and
* instead a static factory method is created that other classes can use to create instances.
* We suggest the name: "of", like so: