diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-10-15 14:44:49 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-10-15 14:45:06 +0200 |
commit | 5960329454b96842681cb96f585fda24410ca10a (patch) | |
tree | d2bcc7b7c00b4680ab632fd6308b3e4b70a4f419 /sonar-batch | |
parent | 83acc2f82af57adf71e5042fe71ca84ccea79d7c (diff) | |
download | sonarqube-5960329454b96842681cb96f585fda24410ca10a.tar.gz sonarqube-5960329454b96842681cb96f585fda24410ca10a.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java index 43721126004..d54cc63c806 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java @@ -120,6 +120,7 @@ public class BatchPluginRepository implements PluginRepository { } static class PluginFilter { + private static final String PROPERTY_IS_DEPRECATED_MSG = "Property {0} is deprecated. Please use {1} instead."; Set<String> whites = Sets.newHashSet(), blacks = Sets.newHashSet(); PluginFilter(Settings settings, AnalysisMode mode) { @@ -133,7 +134,7 @@ public class BatchPluginRepository implements PluginRepository { // These default values are not supported by Settings because the class CorePlugin // is not loaded yet. if (settings.hasKey(CoreProperties.DRY_RUN_INCLUDE_PLUGINS)) { - LOG.warn(MessageFormat.format("Property {0} is deprecated. Please use {1} instead.", CoreProperties.DRY_RUN_INCLUDE_PLUGINS, CoreProperties.PREVIEW_INCLUDE_PLUGINS)); + LOG.warn(MessageFormat.format(PROPERTY_IS_DEPRECATED_MSG, CoreProperties.DRY_RUN_INCLUDE_PLUGINS, CoreProperties.PREVIEW_INCLUDE_PLUGINS)); whites.addAll(propertyValues(settings, CoreProperties.DRY_RUN_INCLUDE_PLUGINS, CoreProperties.PREVIEW_INCLUDE_PLUGINS_DEFAULT_VALUE)); } else { @@ -141,7 +142,7 @@ public class BatchPluginRepository implements PluginRepository { CoreProperties.PREVIEW_INCLUDE_PLUGINS, CoreProperties.PREVIEW_INCLUDE_PLUGINS_DEFAULT_VALUE)); } if (settings.hasKey(CoreProperties.DRY_RUN_EXCLUDE_PLUGINS)) { - LOG.warn(MessageFormat.format("Property {0} is deprecated. Please use {1} instead.", CoreProperties.DRY_RUN_EXCLUDE_PLUGINS, CoreProperties.PREVIEW_EXCLUDE_PLUGINS)); + LOG.warn(MessageFormat.format(PROPERTY_IS_DEPRECATED_MSG, CoreProperties.DRY_RUN_EXCLUDE_PLUGINS, CoreProperties.PREVIEW_EXCLUDE_PLUGINS)); blacks.addAll(propertyValues(settings, CoreProperties.DRY_RUN_EXCLUDE_PLUGINS, CoreProperties.PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE)); } else { |