diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-07-15 18:06:20 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-07-15 18:13:35 +0200 |
commit | 5b745f6619eb0dea2380e4428e135dbb1c2124d5 (patch) | |
tree | 4c5d1ae76819999c71453306107be758fec6050b /sonar-plugin-api/src | |
parent | 02459fcf2a9c7bf30ca8e3f14b79738d30248caf (diff) | |
download | sonarqube-5b745f6619eb0dea2380e4428e135dbb1c2124d5.tar.gz sonarqube-5b745f6619eb0dea2380e4428e135dbb1c2124d5.zip |
SONAR-2860 API: remove the dependency on commons-configuration
Diffstat (limited to 'sonar-plugin-api/src')
3 files changed, 10 insertions, 0 deletions
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() { |