diff options
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() { |