Deprecated API
Contents
-
Interfaces Interface Description org.sonar.api.batch.bootstrap.ProjectBuilder.Context org.sonar.api.batch.fs.InputDir since 6.6 Ability to report issues or measures on directories will soon be dropped. Report issues on project if needed.org.sonar.api.batch.fs.InputModule since 7.6 modules are deprecated. UseInputProject
instead.org.sonar.api.batch.rule.Rules since 7.4 we plan to stop loading rules on scanner sideorg.sonar.api.BatchComponent since 5.2 useScannerSide
annotationorg.sonar.api.database.DatabaseProperties since 7.1, plugins don't connect to databaseorg.sonar.api.i18n.I18n since 7.8 as plugins have no reason to use it anymoreorg.sonar.api.issue.IssueComment since 7.2, comments are no more availableorg.sonar.api.scan.issue.filter.FilterableIssue since 7.6org.sonar.api.scan.issue.filter.IssueFilter since 7.6org.sonar.api.security.LoginPasswordAuthenticator replaced by Authenticator in version 3.1org.sonar.api.task.Task since 7.6org.sonar.api.utils.ZipUtils.ZipEntryFilter replaced byPredicate
in 6.2.
-
Enums Enum Description org.sonar.api.batch.fs.InputFile.Status since 7.7 preview mode was droppedorg.sonar.api.rules.RulePriority since 4.2
-
Exceptions Exceptions Description org.sonar.api.utils.SonarException in 4.4. Use standard exceptions likeIllegalArgumentException
orIllegalStateException
. UseMessageException
for raising errors to end-users without displaying stackstrace.
-
Annotation Types Annotation Type Description org.sonar.api.batch.InstantiationStrategy since 7.6 removal of modules and tasks is planned. All extensions should progressively move to the project scope, usingScannerSide
org.sonar.api.batch.ScannerSide since 7.6 useScannerSide
that will move the component to the project container
-
Constructors Constructor Description org.sonar.api.measures.Metric() in 1.12. Use theMetric.Builder
factory.org.sonar.api.profiles.RulesProfile() use the factory method create()org.sonar.api.profiles.XMLProfileParser(RuleFinder) since 2.5. Plugins shouldn't directly instantiate this class, because it should be retrieved as an IoC dependency.org.sonar.api.rules.ActiveRule() visibility should be reduced to protected or packageorg.sonar.api.rules.ActiveRuleParam() visibility should be decreased to protected or packageorg.sonar.api.rules.Rule() since 2.3. Use the factory methodRule.create()
org.sonar.api.rules.RuleParam() since 2.3 use the factory method Rule.setParameter()
-
Enum Constants Enum Constant Description org.sonar.api.ce.posttask.QualityGate.EvaluationStatus.WARN in 7.6org.sonar.api.ce.posttask.QualityGate.Operator.EQUALS in 7.6. Using this operator will have no effect.org.sonar.api.ce.posttask.QualityGate.Operator.NOT_EQUALS in 7.6. Using this operator will have no effect.org.sonar.api.ce.posttask.QualityGate.Status.WARN in 7.6.org.sonar.api.measures.Metric.Level.WARN in 7.6.org.sonar.api.PropertyType.LICENSE in 6.7.org.sonar.api.PropertyType.LONG since 6.3, this type is useless as Dashboards have been removedorg.sonar.api.PropertyType.METRIC since 6.3, this type is useless as Dashboards have been removedorg.sonar.api.PropertyType.METRIC_LEVEL since 6.3, this type is useless as Dashboards have been removed
-
Annotation Type Elements Annotation Type Element Description org.sonar.api.Property.propertySetKey() since 6.1, as it was not used and too complex to maintain.org.sonar.api.web.UserRole.VIEWER use the constant USER since 1.12.org.sonarsource.api.sonarlint.SonarLintSide.MULTIPLE_ANALYSES since 9.0 useSonarLintSide.INSTANCE
as a direct replacement