diff options
author | Michal Duda <michal.duda@sonarsource.com> | 2020-04-08 19:38:02 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-04-14 20:04:04 +0000 |
commit | d662d0c0269e1a12da0c3ecdb8f9d33b765ccdcc (patch) | |
tree | 7ec6d738cc8516bf42f42552a64f1cdbb0307a37 /sonar-plugin-api-impl/src/main | |
parent | ab6328a769fbe531464fc9dd77cc64efc72ba390 (diff) | |
download | sonarqube-d662d0c0269e1a12da0c3ecdb8f9d33b765ccdcc.tar.gz sonarqube-d662d0c0269e1a12da0c3ecdb8f9d33b765ccdcc.zip |
SONAR-13272 fix issue with setting some properties through env variables
Diffstat (limited to 'sonar-plugin-api-impl/src/main')
-rw-r--r-- | sonar-plugin-api-impl/src/main/java/org/sonar/api/config/internal/MapSettings.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api-impl/src/main/java/org/sonar/api/config/internal/MapSettings.java b/sonar-plugin-api-impl/src/main/java/org/sonar/api/config/internal/MapSettings.java index 764eef2812d..4ca59b06733 100644 --- a/sonar-plugin-api-impl/src/main/java/org/sonar/api/config/internal/MapSettings.java +++ b/sonar-plugin-api-impl/src/main/java/org/sonar/api/config/internal/MapSettings.java @@ -24,6 +24,7 @@ import java.util.Map; import java.util.Optional; import org.sonar.api.config.Configuration; import org.sonar.api.config.PropertyDefinitions; +import org.sonar.api.utils.System2; import static java.util.Collections.unmodifiableMap; import static java.util.Objects.requireNonNull; @@ -42,7 +43,7 @@ public class MapSettings extends Settings { private final ConfigurationBridge configurationBridge; public MapSettings() { - this(new PropertyDefinitions()); + this(new PropertyDefinitions(System2.INSTANCE)); } public MapSettings(PropertyDefinitions definitions) { |