From 5b745f6619eb0dea2380e4428e135dbb1c2124d5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 15 Jul 2013 18:06:20 +0200 Subject: SONAR-2860 API: remove the dependency on commons-configuration --- .../src/main/java/org/sonar/api/batch/DefaultFormulaContext.java | 4 ++++ .../src/main/java/org/sonar/api/measures/FormulaContext.java | 4 ++++ sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleUtils.java | 2 ++ 3 files changed, 10 insertions(+) (limited to 'sonar-plugin-api/src') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/DefaultFormulaContext.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/DefaultFormulaContext.java index d48391a08d7..d5d8d04e474 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/DefaultFormulaContext.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/DefaultFormulaContext.java @@ -44,6 +44,10 @@ public class DefaultFormulaContext implements FormulaContext { return decoratorContext.getResource(); } + /** + * @deprecated in 3.7. Use {@link org.sonar.api.config.Settings}. + */ + @Deprecated public Configuration getConfiguration() { return decoratorContext.getProject().getConfiguration(); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/FormulaContext.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/FormulaContext.java index d0c4177efa0..67aa4823932 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/FormulaContext.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/FormulaContext.java @@ -31,6 +31,10 @@ public interface FormulaContext { Resource getResource(); + /** + * @deprecated in 3.7. Use {@link org.sonar.api.config.Settings}. + */ + @Deprecated Configuration getConfiguration(); } \ No newline at end of file diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleUtils.java index 2d8f4c9baec..c6f2953d62d 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleUtils.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleUtils.java @@ -27,7 +27,9 @@ import org.sonar.api.utils.KeyValueFormat; /** * A utility class to manipulate concepts around rules + * @deprecated in 3.7. Commons Configuration must be replaced by {@link org.sonar.api.config.Settings} */ +@Deprecated public final class RuleUtils { private RuleUtils() { -- cgit v1.2.3