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.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
          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
          a formula has been implemented on the metric, so no need to have decorator anymore 
org.sonar.api.batch.AbstractFunctionComplexityDistributionDecorator
          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.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.database.daos.MeasuresDao
           
org.sonar.api.checks.checkers.MessageDispatcher
          since 2.3 
org.sonar.api.Plugins
            
org.sonar.api.rules.xml.Profile
           
org.sonar.api.rules.xml.Property
           
org.sonar.api.rules.xml.Rule
           
org.sonar.api.database.daos.RulesDao
           
org.sonar.api.rules.RulesManager
          since 2.3 
org.sonar.api.utils.ServerHttpClient
          use org.sonar.api.plaform.Server instead 
org.sonar.api.rules.StandardProfileXmlParser
           
org.sonar.api.rules.StandardRulesXmlParser
           
 

Deprecated Enums
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.batch.AbstractSourceImporter.KEY_IMPORT_SOURCES
          replaced by CoreProperties.CORE_IMPORT_SOURCES_PROPERTY since 1.11 
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.resources.Resource.QUALIFIER_PROJECT_BRANCH
           
org.sonar.api.web.gwt.client.webservices.Resource.QUALIFIER_PROJECT_BRANCH
           
org.sonar.api.resources.Resource.QUALIFIER_PROJECT_TRUNK
           
org.sonar.api.web.gwt.client.webservices.Resource.QUALIFIER_PROJECT_TRUNK
           
org.sonar.api.resources.Resource.SCOPE_DIRECTORY
           
org.sonar.api.web.gwt.client.webservices.Resource.SCOPE_DIRECTORY
           
org.sonar.api.resources.Resource.SCOPE_FILE
           
org.sonar.api.web.gwt.client.webservices.Resource.SCOPE_FILE
           
org.sonar.api.resources.Resource.SCOPE_PROJECT
           
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.web.UserRole.VIEWER
          use the constant USER since 1.12. 
 

Deprecated Methods
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.api.profiles.RulesProfile.getActiveRulesByPlugin(String)
          since 2.3. Use getActiveRulesByRepository(). 
org.sonar.api.Plugin.getDescription()
          since 2.2. The description must be set in the manifest. 
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.ActiveRule.getPluginName()
          use getRepositoryKey() 
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.rules.Rule.setId(Integer)
          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.Violation.setPriority(RulePriority)
          since 2.3. The priority is set by the quality profile. 
org.sonar.api.rules.ActiveRule.setRule(Rule)
          visibility should be reduced to protected or package 
org.sonar.api.rules.ActiveRuleParam.setRuleParam(RuleParam)
          visibility should be decreased to protected or package 
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.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 create() 
org.sonar.api.rules.Rule(String, String)
          since 2.3. Use the factory method create() 
org.sonar.api.rules.Rule(String, String, RulesCategory, String, String)
          Use the factory method create() 
org.sonar.api.rules.Rule(String, String, String, RulesCategory, RulePriority)
          since 2.3. Use the factory method create() 
org.sonar.api.rules.Rule(String, String, String, RulesCategory, String, String)
          since 2.3. Use the factory method 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() 
 



Copyright © 2009-2010 SonarSource. All Rights Reserved.