Skip to content

Commit

Permalink
[With] [trivial] just docs and moving things around to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
rzwitserloot committed Aug 26, 2019
1 parent da5d9a1 commit 27589f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/core/lombok/ConfigurationKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,15 @@ private ConfigurationKeys() {}
public static final ConfigurationKey<FlagUsageType> VAL_FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.val.flagUsage", "Emit a warning or error if 'val' is used.") {};
public static final ConfigurationKey<FlagUsageType> VAR_FLAG_USAGE = new ConfigurationKey<FlagUsageType>("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, <em>any</em> usage of {@code @With} results in a warning / error.
*/
public static final ConfigurationKey<FlagUsageType> WITH_FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.with.flagUsage", "Emit a warning or error if @With is used.") {};

// ##### Extern #####

// ----- Logging -----
Expand Down Expand Up @@ -593,15 +602,6 @@ private ConfigurationKeys() {}
*/
public static final ConfigurationKey<Boolean> FIELD_NAME_CONSTANTS_UPPERCASE = new ConfigurationKey<Boolean>("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, <em>any</em> usage of {@code @With} results in a warning / error.
*/
public static final ConfigurationKey<FlagUsageType> WITH_FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.with.flagUsage", "Emit a warning or error if @With is used.") {};

// ----- SuperBuilder -----

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/lombok/javac/handlers/HandleWith.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void generateWithForType(JavacNode typeNode, JavacNode errorNode, AccessL
*
* 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.
Expand Down

0 comments on commit 27589f7

Please sign in to comment.