Deprecated API


Contents
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.web.gwt.client.AbstractPage
          since 2.0, use the lib sonar-gwt-api 
org.sonar.api.Plugins
            
org.sonar.api.utils.ServerHttpClient
          use org.sonar.api.plaform.Server instead 
 

Deprecated Enums
org.sonar.api.web.Section
          add annotation org.sonar.api.web.NavigationSection to View extensions 
 

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 
 

Deprecated Constructors
org.sonar.api.batch.AbstractViolationsStaxParser(SensorContext, RulesManager, RulesProfile)
          since 1.11. 
org.sonar.api.measures.Metric()
           
org.sonar.api.measures.Metric(String, String, String, Metric.ValueType, Integer, Boolean, String, boolean)
           
org.sonar.api.rules.Rule(String, String, RulesCategory, String, String)
           
org.sonar.api.rules.Rule(String, String, String, RulesCategory, String, String)
           
 



Copyright © 2009-2010 SonarSource. All Rights Reserved.