aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lombok/core/LombokConfiguration.java5
-rw-r--r--src/core/lombok/core/configuration/ConfigurationDataType.java2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/lombok/core/LombokConfiguration.java b/src/core/lombok/core/LombokConfiguration.java
index c53da35f..eb7b3d75 100644
--- a/src/core/lombok/core/LombokConfiguration.java
+++ b/src/core/lombok/core/LombokConfiguration.java
@@ -21,6 +21,8 @@
*/
package lombok.core;
+import java.util.Collections;
+
import lombok.core.configuration.BubblingConfigurationResolver;
import lombok.core.configuration.ConfigurationKey;
import lombok.core.configuration.ConfigurationProblemReporter;
@@ -30,7 +32,8 @@ import lombok.core.configuration.FileSystemSourceCache;
public class LombokConfiguration {
private static final ConfigurationResolver NULL_RESOLVER = new ConfigurationResolver() {
- @Override public <T> T resolve(ConfigurationKey<T> key) {
+ @SuppressWarnings("unchecked") @Override public <T> T resolve(ConfigurationKey<T> key) {
+ if (key.getType().isList()) return (T) Collections.emptyList();
return null;
}
};
diff --git a/src/core/lombok/core/configuration/ConfigurationDataType.java b/src/core/lombok/core/configuration/ConfigurationDataType.java
index fa65f575..7512d2e6 100644
--- a/src/core/lombok/core/configuration/ConfigurationDataType.java
+++ b/src/core/lombok/core/configuration/ConfigurationDataType.java
@@ -186,7 +186,7 @@ public final class ConfigurationDataType {
this.parser = parser;
}
- boolean isList() {
+ public boolean isList() {
return isList;
}