From d680f8c7f48b6a982c2cea0e8758716eee4807bc Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 22 Dec 2013 04:40:54 +0100 Subject: [configuration] initial batch of configuration keys, primarily for flag usages. --- src/core/lombok/extern/java/Log.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/core/lombok/extern/java/Log.java') diff --git a/src/core/lombok/extern/java/Log.java b/src/core/lombok/extern/java/Log.java index 7ae4e07b..68125dc8 100644 --- a/src/core/lombok/extern/java/Log.java +++ b/src/core/lombok/extern/java/Log.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; + /** * Causes lombok to generate a logger field. *

@@ -58,4 +61,10 @@ import java.lang.annotation.Target; @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) public @interface Log { -} \ No newline at end of file + /** + * lombok configuration: {@code lombok.log.javaUtilLogging.flagUsage} = {@code WARNING} | {@code ERROR}. + * + * If set, any usage of {@code @Log} results in a warning / error. + */ + ConfigurationKey FLAG_USAGE = new ConfigurationKey("lombok.log.javaUtilLogging.flagUsage") {}; +} -- cgit