diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-30 14:35:47 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-30 14:35:47 +0100 |
commit | 7efbecfe49af452f117e6a16c969a4b2071e80cd (patch) | |
tree | bc383202f69d02c6dcf5f18da070558c7e421083 /src/delombok | |
parent | 8ed49ce0b5c0dbddb66a5519086a033889e6e2e2 (diff) | |
parent | 8a6c581bf6b4126c0dfd2dfb53bd03160712e8ae (diff) | |
download | lombok-7efbecfe49af452f117e6a16c969a4b2071e80cd.tar.gz lombok-7efbecfe49af452f117e6a16c969a4b2071e80cd.tar.bz2 lombok-7efbecfe49af452f117e6a16c969a4b2071e80cd.zip |
Merge branch 'master' of https://github.com/petercgrant/lombok into i623
Diffstat (limited to 'src/delombok')
-rw-r--r-- | src/delombok/lombok/delombok/FormatPreferences.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/delombok/lombok/delombok/FormatPreferences.java b/src/delombok/lombok/delombok/FormatPreferences.java index 9bd668a5..caacc246 100644 --- a/src/delombok/lombok/delombok/FormatPreferences.java +++ b/src/delombok/lombok/delombok/FormatPreferences.java @@ -33,6 +33,7 @@ public final class FormatPreferences { private final boolean generateConstructorProperties; private final boolean generateSuppressWarnings, danceAroundIdeChecks, generateDelombokComment, javaLangAsFqn; final Map<String, String> rawMap; + private final boolean generateGenerated; static final Map<String, String> KEYS; @@ -46,6 +47,7 @@ public final class FormatPreferences { keys.put("danceAroundIdeChecks", "Either 'generate' or 'skip'. generate means: Lombok will intentionally obfuscate some generated code to avoid IDE warnings. Default: 'generate'"); keys.put("generateDelombokComment", "Either 'generate' or 'skip'. generate means: Any file modified by delombok will have a comment stating this at the top. Default: 'generate'"); keys.put("javaLangAsFQN", "Either 'generate' or 'skip'. generate means: Any generated reference to java.lang classes are prefixed with `java.lang.`. Default: 'generate'"); + keys.put("generated", "Either 'generate' or 'skip'. generate means: All lombok-generated methods get a @Generated(\"lombok\") annotation. Default: 'generate'"); KEYS = Collections.unmodifiableMap(keys); } @@ -85,6 +87,7 @@ public final class FormatPreferences { this.danceAroundIdeChecks = unrollBoolean(preferences, "danceAroundIdeChecks", "generate", "skip", true); this.generateDelombokComment = unrollBoolean(preferences, "generateDelombokComment", "generate", "skip", true); this.javaLangAsFqn = unrollBoolean(preferences, "javaLangAsFQN", "generate", "skip", true); + this.generateGenerated = unrollBoolean(preferences, "generated", "generate", "skip", true); } private static boolean unrollBoolean(Map<String, String> preferences, String name, String trueStr, String falseStr, boolean defaultVal) { @@ -131,4 +134,8 @@ public final class FormatPreferences { public boolean generateConstructorProperties() { return generateConstructorProperties; } + + public boolean generateGenerated() { + return generateGenerated; + } } |