From 27589f7bb843c1299fa76a7106fada35a2370d72 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 27 Aug 2019 00:15:18 +0200 Subject: [With] [trivial] just docs and moving things around to the right place --- src/core/lombok/ConfigurationKeys.java | 18 +++++++++--------- src/core/lombok/javac/handlers/HandleWith.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/core/lombok/ConfigurationKeys.java b/src/core/lombok/ConfigurationKeys.java index 0baf1f3b..ef433d8d 100644 --- a/src/core/lombok/ConfigurationKeys.java +++ b/src/core/lombok/ConfigurationKeys.java @@ -354,6 +354,15 @@ public class ConfigurationKeys { public static final ConfigurationKey VAL_FLAG_USAGE = new ConfigurationKey("lombok.val.flagUsage", "Emit a warning or error if 'val' is used.") {}; public static final ConfigurationKey VAR_FLAG_USAGE = new ConfigurationKey("lombok.var.flagUsage", "Emit a warning or error if 'var' is used.") {}; + // ----- With ----- + + /** + * lombok configuration: {@code lombok.with.flagUsage} = {@code WARNING} | {@code ERROR}. + * + * If set, any usage of {@code @With} results in a warning / error. + */ + public static final ConfigurationKey WITH_FLAG_USAGE = new ConfigurationKey("lombok.with.flagUsage", "Emit a warning or error if @With is used.") {}; + // ##### Extern ##### // ----- Logging ----- @@ -593,15 +602,6 @@ public class ConfigurationKeys { */ public static final ConfigurationKey FIELD_NAME_CONSTANTS_UPPERCASE = new ConfigurationKey("lombok.fieldNameConstants.uppercase", "The default name of the constants inside the inner type generated by @FieldNameConstants follow the variable name precisely. If this config key is true, lombok will uppercase them as best it can. (default: false).") {}; - // ----- With ----- - - /** - * lombok configuration: {@code lombok.with.flagUsage} = {@code WARNING} | {@code ERROR}. - * - * If set, any usage of {@code @With} results in a warning / error. - */ - public static final ConfigurationKey WITH_FLAG_USAGE = new ConfigurationKey("lombok.with.flagUsage", "Emit a warning or error if @With is used.") {}; - // ----- SuperBuilder ----- /** diff --git a/src/core/lombok/javac/handlers/HandleWith.java b/src/core/lombok/javac/handlers/HandleWith.java index fd14e06a..7b2417da 100644 --- a/src/core/lombok/javac/handlers/HandleWith.java +++ b/src/core/lombok/javac/handlers/HandleWith.java @@ -103,7 +103,7 @@ public class HandleWith extends JavacAnnotationHandler { * * The difference between this call and the handle method is as follows: * - * If there is a {@code lombok.experimental.With} annotation on the field, it is used and the + * If there is a {@code lombok.With} annotation on the field, it is used and the * same rules apply (e.g. warning if the method already exists, stated access level applies). * If not, the with is still generated if it isn't already there, though there will not * be a warning if its already there. The default access level is used. -- cgit