Deprecated API


Contents
Deprecated Interfaces
org.sonar.api.web.DashboardWidget
          use org.sonar.api.web.RubyRailsWidget, better because of optional conditions (see annotations in org.sonar.api.web.views package) 
org.sonar.api.web.Page
          replaced by org.sonar.api.web.GwtPage, better because of optional conditions (see annotations in org.sonar.api.web package) 
 

Deprecated Classes
org.sonar.api.web.AbstractDashboardWidget
          override org.sonar.api.web.AbstractRubyTemplate and implement org.sonar.api.web.RubyRailsWidget 
 

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_BRANCH
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Project.PARAM_DATE
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Project.PARAM_DEPRECATED_BRANCH
          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.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.resources.Project.getArtifactId()
          since 1.12. Avoid coupling with Maven concepts. 
org.sonar.api.resources.Project.getGroupId()
          since 1.12. Avoid coupling with Maven concepts. 
org.sonar.api.resources.ResourceUtils.isDirectory(Resource)
           
org.sonar.api.resources.ResourceUtils.isFile(Resource)
           
org.sonar.api.resources.ResourceUtils.isProject(Resource)
           
org.sonar.api.resources.Project.isSonarLightMode()
           
 

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 SonarSource SA. All Rights Reserved.