Deprecated API


Contents
Deprecated Interfaces
org.sonar.api.rules.ConfigurationExportable
           
org.sonar.api.rules.ConfigurationImportable
           
org.sonar.api.batch.GeneratesViolations
          since 2.3. Use @DependsUpon(DecoratorBarriers.START_VIOLATIONS_GENERATION) and @DependedUpon(DecoratorBarriers.END_OF_VIOLATIONS_GENERATION) 
org.sonar.check.Message
           
org.sonar.api.batch.Purge
          since 2.5. The DBCleaner plugin implements all required purge taks. 
org.sonar.api.batch.PurgeContext
          since 2.5 
org.sonar.api.rules.RulePriorityMapper
           
org.sonar.api.rules.RulesRepository
          since 2.3 
 

Deprecated Classes
org.sonar.api.web.AbstractDashboardWidget
          override org.sonar.api.web.AbstractRubyTemplate and implement org.sonar.api.web.RubyRailsWidget 
org.sonar.api.batch.AbstractDirectoriesDecorator
          since 2.2, the number of directories is automatically calculated by sonar core (see metric formula) 
org.sonar.api.batch.AbstractFileComplexityDecorator
          since 2.1, a formula has been implemented on the metric, so no need to have decorator anymore 
org.sonar.api.batch.AbstractFilesDecorator
          since 2.2, the number of files is automatically calculated by sonar core (see metric formula) 
org.sonar.api.batch.AbstractFunctionComplexityDecorator
          since 2.1, a formula has been implemented on the metric, so no need to have decorator anymore 
org.sonar.api.batch.AbstractFunctionComplexityDistributionDecorator
          since 2.1, a formula has been implemented on the metric, so no need to have decorator anymore 
org.sonar.api.rules.AbstractImportableRulesRepository
           
org.sonar.api.web.gwt.client.AbstractPage
          since 2.0, use the lib sonar-gwt-api 
org.sonar.api.batch.AbstractPurge
          database components have been moved to sonar-database. Please extend org.sonar.core.purge.AbstractPurge. 
org.sonar.core.purge.AbstractPurge
          since 2.5. The DBCleaner plugin implements all required purge taks, but you can extend org.sonar.plugins.dbcleaner.api.Purge 
org.sonar.api.web.gwt.client.webservices.AbstractResourceQuery
          since 2.5 
org.sonar.api.rules.AbstractRulesRepository
           
org.sonar.api.batch.AbstractViolationsStaxParser
          since 2.3. Too much "black-box". 
org.sonar.api.checks.checkers.AnnotationCheckerFactory
          since 2.3 
org.sonar.api.checks.profiles.AnnotationCheckProfileFactory
          since 2.3 
org.sonar.api.checks.templates.AnnotationCheckTemplateFactory
          since 2.3 
org.sonar.check.AnnotationIntrospector
          since 2.3 
org.sonar.api.checks.templates.BundleCheckTemplate
          since 2.3 
org.sonar.api.checks.templates.BundleCheckTemplateProperty
          since 2.3 
org.sonar.api.checks.profiles.Check
          since 2.3 
org.sonar.api.checks.checkers.CheckerFactory
          since 2.3 
org.sonar.api.checks.profiles.CheckProfile
          since 2.3 
org.sonar.api.checks.profiles.CheckProfileProvider
          since 2.3 
org.sonar.api.checks.profiles.CheckProfileXmlMarshaller
          since 2.3 
org.sonar.api.checks.templates.CheckTemplate
          since 2.3 
org.sonar.api.checks.templates.CheckTemplateFactory
          since 2.3 
org.sonar.api.checks.templates.CheckTemplateProperty
          since 2.3 
org.sonar.api.checks.templates.CheckTemplateRepositories
          since 2.3 
org.sonar.api.checks.templates.CheckTemplateRepository
          since 2.3 
org.sonar.api.rules.DefaultRulesManager
          UGLY CLASS 
org.sonar.api.web.gwt.client.webservices.FileSource
          since 2.5, use Source instead. 
org.sonar.api.rules.Iso9126RulesCategories
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.web.gwt.client.webservices.Measure
          since 2.5, use Measure instead. 
org.sonar.api.database.daos.MeasuresDao
          since 2.3 
org.sonar.api.checks.checkers.MessageDispatcher
          since 2.3 
org.sonar.api.web.gwt.client.webservices.MetricsQuery
          since 2.5, use MetricQuery instead. 
org.sonar.api.Plugins
          since 2.1 
org.sonar.api.rules.xml.Profile
           
org.sonar.api.web.gwt.client.webservices.Properties
          since 2.5 
org.sonar.api.web.gwt.client.webservices.PropertiesQuery
          since 2.5, use PropertyQuery instead. 
org.sonar.api.web.gwt.client.webservices.Property
          since 2.5, use Property instead 
org.sonar.api.rules.xml.Property
           
org.sonar.api.web.gwt.client.webservices.Resource
          since 2.5, use Resource instead. 
org.sonar.api.web.gwt.client.webservices.Resources
          since 2.5 
org.sonar.api.web.gwt.client.webservices.ResourcesQuery
          since 2.5, use ResourceQuery instead 
org.sonar.api.web.gwt.client.webservices.Rule
          since 2.5 
org.sonar.api.rules.xml.Rule
           
org.sonar.api.rules.RulesCategory
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.database.daos.RulesDao
          since 2.3 
org.sonar.api.rules.RulesManager
          since 2.3 
org.sonar.api.utils.ServerHttpClient
          use org.sonar.api.plaform.Server instead 
org.sonar.api.web.gwt.client.webservices.SourcesQuery
          since 2.5, use SourceQuery instead 
org.sonar.api.rules.StandardProfileXmlParser
           
org.sonar.api.rules.StandardRulesXmlParser
           
org.sonar.api.web.gwt.client.webservices.Violation
          since 2.5, use Violation instead. 
org.sonar.api.web.gwt.client.webservices.Violations
          since 2.5 
org.sonar.api.web.gwt.client.webservices.ViolationsQuery
          since 2.5, use ViolationQuery instead. 
 

Deprecated Enums
org.sonar.check.IsoCategory
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.web.Section
          add annotation org.sonar.api.web.NavigationSection to View extensions 
 

Deprecated Exceptions
org.sonar.api.checks.checkers.UnvalidCheckerException
          since 2.3 
 

Deprecated Annotation Types
org.sonar.check.BelongsToProfiles
          since 2.3. Not supported anymore 
org.sonar.check.Check
          since 2.3. Use @Rule 
org.sonar.check.CheckProperty
          since 2.3. Use @RuleProperty 
 

Deprecated Fields
org.sonar.api.batch.AbstractSourceImporter.DEFAULT_IMPORT_SOURCES
          replaced by CoreProperties.CORE_IMPORT_SOURCES_DEFAULT_VALUE since 1.11 
org.sonar.api.measures.CoreMetrics.DOMAIN_RULE_CATEGORIES
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.CoreMetrics.EFFICIENCY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.CoreMetrics.EFFICIENCY_KEY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.batch.AbstractSourceImporter.KEY_IMPORT_SOURCES
          replaced by CoreProperties.CORE_IMPORT_SOURCES_PROPERTY since 1.11 
org.sonar.api.measures.CoreMetrics.MAINTAINABILITY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.CoreMetrics.MAINTAINABILITY_KEY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.resources.Project.PARAM_DATE
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Project.PARAM_DYNAMIC_ANALYSIS
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Project.PARAM_EXCLUSIONS
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Project.PARAM_LANGUAGE
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Project.PARAM_REUSE_RULES_CONFIG
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Project.PARAM_VERSION
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.measures.CoreMetrics.PORTABILITY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.CoreMetrics.PORTABILITY_KEY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.resources.Resource.QUALIFIER_PROJECT_BRANCH
          since 1.11, use Resource.QUALIFIER_MODULE instead. 
org.sonar.api.web.gwt.client.webservices.Resource.QUALIFIER_PROJECT_BRANCH
           
org.sonar.api.resources.Resource.QUALIFIER_PROJECT_TRUNK
          since 1.11, use Resource.QUALIFIER_PROJECT instead. 
org.sonar.api.web.gwt.client.webservices.Resource.QUALIFIER_PROJECT_TRUNK
           
org.sonar.api.measures.CoreMetrics.RELIABILITY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.CoreMetrics.RELIABILITY_KEY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.CoreProperties.REUSE_RULES_CONFIGURATION_PROPERTY
          since 2.5. See discussion from http://jira.codehaus.org/browse/SONAR-1873 
org.sonar.api.resources.Resource.SCOPE_DIRECTORY
          since 1.11, use Resource.SCOPE_SPACE instead. 
org.sonar.api.web.gwt.client.webservices.Resource.SCOPE_DIRECTORY
           
org.sonar.api.resources.Resource.SCOPE_FILE
          since 1.11, use Resource.SCOPE_ENTITY instead. 
org.sonar.api.web.gwt.client.webservices.Resource.SCOPE_FILE
           
org.sonar.api.resources.Resource.SCOPE_PROJECT
          since 1.11, use Resource.SCOPE_SET instead. 
org.sonar.api.web.gwt.client.webservices.Resource.SCOPE_PROJECT
           
org.sonar.api.measures.CoreMetrics.UNCOVERED_COMPLEXITY_BY_TESTS
          replaced since 1.11 by UNCOVERED_LINES and UNCOVERED_CONDITIONS 
org.sonar.api.measures.CoreMetrics.UNCOVERED_COMPLEXITY_BY_TESTS_KEY
          replaced since 1.11 by UNCOVERED_LINES and UNCOVERED_CONDITIONS 
org.sonar.api.measures.CoreMetrics.USABILITY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.CoreMetrics.USABILITY_KEY
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.web.UserRole.VIEWER
          use the constant USER since 1.12. 
 

Deprecated Methods
org.sonar.api.measures.RuleMeasure.createForCategory(Metric, Integer, Double)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.web.gwt.client.webservices.ResourcesQuery.filterOnRuleCategories(boolean)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.utils.KeyValueFormat.format(Bag)
          use Multiset from google collections instead of commons-collections bags 
org.sonar.api.utils.KeyValueFormat.format(Bag, int)
          use Multiset from google collections instead of commons-collections bags 
org.sonar.gwt.ui.Icons.forPriority(String)
          since 2.5 use Icons.forSeverity(String) 
org.sonar.api.profiles.RulesProfile.getActiveRulesByPlugin(String)
          since 2.3 use RulesProfile.getActiveRulesByRepository(String) instead. 
org.sonar.api.resources.Project.getArtifactId()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 
org.sonar.api.web.gwt.client.webservices.ViolationsQuery.getCategories()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.web.gwt.client.webservices.Rule.getCategory()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.rules.Rule.getCategoryId()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.Plugin.getDescription()
          since 2.2. The description must be set in the manifest. 
org.sonar.api.resources.Project.getGroupId()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 
org.sonar.api.Plugin.getKey()
          since 2.2. The key must be set in the manifest. 
org.sonar.api.Plugin.getName()
          since 2.2. The name must be set in the manifest. 
org.sonar.api.platform.PluginRepository.getPluginForExtension(Object)
          since 2.3 
org.sonar.api.rules.Rule.getPluginName()
          since 2.5 use Rule.getRepositoryKey() instead 
org.sonar.api.rules.ActiveRule.getPluginName()
          since 2.3 use ActiveRule.getRepositoryKey() instead 
org.sonar.api.resources.Project.getPom()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 , MavenProject can be retrieved as an IoC dependency 
org.sonar.wsclient.services.ViolationQuery.getPriorities()
          since 2.5 use ViolationQuery.getSeverities() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.Violation.getPriority()
          since 2.5 use Violation.getSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.Rule.getPriority()
          since 2.5 use Rule.getSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.ActiveRule.getPriority()
          since 2.5 use ActiveRule.getSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.wsclient.services.Violation.getPriority()
          since 2.5 use Violation.getSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.resources.Project.getReuseExistingRulesConfig()
          since 2.5. See discussion from http://jira.codehaus.org/browse/SONAR-1873 
org.sonar.wsclient.services.ResourceQuery.getRuleCategories()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.RuleMeasure.getRuleCategory()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.web.gwt.client.webservices.Measure.getRuleCategory()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.wsclient.services.Measure.getRuleCategory()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.wsclient.services.ResourceQuery.getRulePriorities()
          since 2.5 use ResourceQuery.getRuleSeverities() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.wsclient.services.Measure.getRulePriority()
          since 2.5 use Measure.getRuleSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.jpa.dao.RulesDao.getRulesByPlugin(String)
          since 2.5 use RulesDao.getRulesByRepository(String) instead. 
org.sonar.api.rules.Rule.getRulesCategory()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.database.model.MeasureModel.getRulesCategoryId()
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.wsclient.services.ResourceQuery.isExcludeRuleCategories()
          since 2.5 not used anymore 
org.sonar.wsclient.services.ResourceQuery.isExcludeRulePriorities()
          since 2.5 use ResourceQuery.isExcludeRuleSeverities() instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.measures.MeasuresFilters.ruleCategories(Metric)
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.MeasuresFilters.ruleCategory(Metric, Integer)
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.rules.ActiveRuleParam.setActiveRule(ActiveRule)
          visibility should be decreased to protected or package 
org.sonar.api.rules.ActiveRule.setActiveRuleParams(List)
          use setParameter() 
org.sonar.api.web.gwt.client.webservices.ViolationsQuery.setCategories(String)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.wsclient.services.ResourceQuery.setExcludeRuleCategories(boolean)
          since 2.5 not used anymore 
org.sonar.wsclient.services.ResourceQuery.setExcludeRulePriorities(boolean)
          since 2.5 use ResourceQuery.setExcludeRuleSeverities(boolean) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.Rule.setId(Integer)
          since 2.3. visibility should be decreased to protected or package 
org.sonar.api.rules.ActiveRule.setId(Integer)
          visibility should be decreased to protected or package 
org.sonar.api.rules.Rule.setPluginName(String)
          since 2.5 use Rule.setRepositoryKey(String) instead 
org.sonar.wsclient.services.ViolationQuery.setPriorities(String...)
          since 2.5 use ViolationQuery.setSeverities(String...) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.Violation.setPriority(RulePriority)
          since 2.5 use Violation.setSeverity(RulePriority) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.Rule.setPriority(RulePriority)
          since 2.5 use Rule.setSeverity(RulePriority) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.ActiveRule.setPriority(RulePriority)
          since 2.5 use ActiveRule.setSeverity(RulePriority) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.wsclient.services.Violation.setPriority(String)
          since 2.5 use Violation.setSeverity(String) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.ActiveRule.setRule(Rule)
          visibility should be reduced to protected or package 
org.sonar.wsclient.services.ResourceQuery.setRuleCategories(String...)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.web.gwt.client.webservices.ResourcesQuery.setRuleCategories(String)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.measures.RuleMeasure.setRuleCategory(Integer)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.wsclient.services.Measure.setRuleCategory(String)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.rules.ActiveRuleParam.setRuleParam(RuleParam)
          visibility should be decreased to protected or package 
org.sonar.wsclient.services.ResourceQuery.setRulePriorities(String...)
          since 2.5 use ResourceQuery.setRuleSeverities(String...) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.wsclient.services.Measure.setRulePriority(String)
          since 2.5 use Measure.setRuleSeverity(String) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.rules.Rule.setRulesCategory(RulesCategory)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.database.model.MeasureModel.setRulesCategoryId(Integer)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.rules.ActiveRule.setRulesProfile(RulesProfile)
          visibility should be reduced to protected or package 
 

Deprecated Constructors
org.sonar.api.batch.AbstractCoverageExtension(Plugins)
          since 2.3. Use the default constructor 
org.sonar.api.batch.AbstractViolationsStaxParser(SensorContext, RulesManager, RulesProfile)
          since 1.11. 
org.sonar.api.rules.ActiveRule()
          visibility should be reduced to protected or package 
org.sonar.api.rules.ActiveRule(RulesProfile, Rule, RulePriority)
          visibility should be reduced to protected or package 
org.sonar.api.rules.ActiveRuleParam()
          visibility should be decreased to protected or package 
org.sonar.api.rules.ActiveRuleParam(ActiveRule, RuleParam, String)
          visibility should be decreased to protected or package 
org.sonar.api.batch.Event(String, String, String, Date, Integer)
           
org.sonar.api.batch.Event(String, String, String, Snapshot)
           
org.sonar.api.measures.Metric()
           
org.sonar.api.measures.Metric(String, String, String, Metric.ValueType, Integer, Boolean, String, boolean)
           
org.sonar.api.rules.Rule()
          since 2.3. Use the factory method Rule.create() 
org.sonar.api.rules.Rule(String, String)
          since 2.3. Use the factory method Rule.create() 
org.sonar.api.rules.Rule(String, String, RulesCategory, String, String)
          since 2.3. Use the factory method Rule.create() 
org.sonar.api.rules.Rule(String, String, String, RulesCategory, RulePriority)
          since 2.3. Use the factory method Rule.create() 
org.sonar.api.rules.Rule(String, String, String, RulesCategory, String, String)
          since 2.3. Use the factory method Rule.create() 
org.sonar.api.rules.RuleParam()
          since 2.3 use the factory method Rule.setParameter() 
org.sonar.api.rules.RuleParam(Rule, String, String, String)
          since 2.3 use the factory method setParameter() 
org.sonar.api.profiles.RulesProfile()
          use the factory method create() 
org.sonar.api.profiles.RulesProfile(String, String)
          since 2.3. Use the factory method create() 
org.sonar.api.profiles.RulesProfile(String, String, boolean, boolean)
          since 2.3. Use the factory method create() 
org.sonar.api.rules.Violation(Rule)
          since 2.3. Use the factory method create() 
org.sonar.api.rules.Violation(Rule, Resource)
          since 2.3. 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.profiles.XMLProfileParser(RuleFinder, MetricFinder)
          since 2.5. Plugins shouldn't directly instantiate this class, because it should be retrieved as an IoC dependency. 
 

Deprecated Annotation Type Elements
org.sonar.check.Rule.isoCategory
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.check.Check.isoCategory
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 
 



Copyright © 2009-2011 SonarSource. All Rights Reserved.