diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-06-01 11:01:58 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-06-01 11:01:58 +0200 |
commit | 627de194c03af3afa3478149dc777d2af4e9654b (patch) | |
tree | 21d0604c96f27ded461e6d396d8f64b2a2945211 /src | |
parent | fe25bb153326d657ad98d9bd55c801d8815f39b3 (diff) | |
download | lombok-627de194c03af3afa3478149dc777d2af4e9654b.tar.gz lombok-627de194c03af3afa3478149dc777d2af4e9654b.tar.bz2 lombok-627de194c03af3afa3478149dc777d2af4e9654b.zip |
fixed up ‘consequent boolean’ proposal with a different key name and documentation.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/ConfigurationKeys.java | 8 | ||||
-rw-r--r-- | src/core/lombok/core/handlers/HandlerUtil.java | 1 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/core/lombok/ConfigurationKeys.java b/src/core/lombok/ConfigurationKeys.java index e3308f0a..301563b8 100644 --- a/src/core/lombok/ConfigurationKeys.java +++ b/src/core/lombok/ConfigurationKeys.java @@ -112,12 +112,12 @@ public class ConfigurationKeys { public static final ConfigurationKey<FlagUsageType> GETTER_LAZY_FLAG_USAGE = new ConfigurationKey<FlagUsageType>("lombok.getter.lazy.flagUsage", "Emit a warning or error if @Getter(lazy=true) is used.") {}; /** - * lombok configuration: {@code lombok.getter.consequentBoolean} = {@code true} | {@code false}. - * - * If true, the special Javabeans rules for {@code boolean} accessors get ignored and booleans get processed just like any other type. + * lombok configuration: {@code lombok.getter.noIsPrefix} = {@code true} | {@code false}. + * + * If {@code true}, booleans getters are both referred to, and generated as {@code getFieldName()}. If {@code false} (the default), the javabean-standard {@code isFieldName()} is generated / used instead. * */ - public static final ConfigurationKey<Boolean> GETTER_CONSEQUENT_BOOLEAN = new ConfigurationKey<Boolean>("lombok.getter.consequentBoolean", "Emit a warning or error if @Getter is used.") {}; + public static final ConfigurationKey<Boolean> GETTER_CONSEQUENT_BOOLEAN = new ConfigurationKey<Boolean>("lombok.getter.noIsPrefix", "If true, generate and use getFieldName() for boolean getters instead of isFieldName().") {}; // ----- Setter ----- diff --git a/src/core/lombok/core/handlers/HandlerUtil.java b/src/core/lombok/core/handlers/HandlerUtil.java index 03bb341c..621d8760 100644 --- a/src/core/lombok/core/handlers/HandlerUtil.java +++ b/src/core/lombok/core/handlers/HandlerUtil.java @@ -285,7 +285,6 @@ public class HandlerUtil { if (Boolean.TRUE.equals(ast.readConfiguration(ConfigurationKeys.GETTER_CONSEQUENT_BOOLEAN))) isBoolean = false; boolean explicitPrefix = accessors != null && accessors.isExplicit("prefix"); -// System.out.printf("accessors: %s actual expr: %s val: %s\n", accessors, accessors != null ? accessors.getActualExpression("prefix") : "(null)", accessors == null ? "(null)" : Arrays.toString(accessors.getInstance().prefix())); boolean explicitFluent = accessors != null && accessors.isExplicit("fluent"); Accessors ac = (explicitPrefix || explicitFluent) ? accessors.getInstance() : null; |