Deprecated API


Contents
Deprecated Interfaces
org.sonar.api.batch.maven.DependsUponCustomRules
          not supported anymore for many releases... 
org.sonar.api.web.GwtExtension
          in 3.7. Replaced by Ruby on Rails extensions 
org.sonar.api.utils.KeyValueFormat.Transformer
          since 2.7. Replaced by Converter 
org.sonar.api.security.LoginPasswordAuthenticator
          replaced by Authenticator in version 3.1 
org.sonar.check.Message
          in 2.3 
org.sonar.api.Plugin
          in 2.8. Use SonarPlugin instead. 
org.sonar.api.resources.ProjectFileSystem
          replaced by ModuleFileSystem in 3.5 
org.sonar.api.rules.ViolationFilter
          in 3.6. Replaced by IssueFilter. 
 

Deprecated Classes
org.sonar.api.batch.AbstractCoverageExtension
          since 2.6 was superseded by interface CoverageExtension 
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.measures.AverageComplexityFormula
          since 3.0. Use AverageFormula instead. 
org.sonar.api.batch.BatchExtensionDictionnary
          since 2.6 was only used by views 
org.sonar.api.database.configuration.DatabaseConfiguration
          in 3.7. Replaced by Settings 
org.sonar.api.resources.DefaultProjectFileSystem
          replaced by ModuleFileSystem and PathResolver in 3.5 
org.sonar.api.batch.FileFilter
          replaced by FileSystemFilter in 3.5 
org.sonar.api.web.GwtPage
          in 3.7. Replaced by Ruby on Rails pages. 
org.sonar.api.resources.Java
          in 3.6 
org.sonar.api.utils.KeyValueFormat.DateTimeConverter
          in version 2.13. Replaced by KeyValueFormat.newDateTimeConverter() 
org.sonar.api.utils.KeyValueFormat.DoubleNumbersPairTransformer
          since 2.7. Replaced by Converter 
org.sonar.api.utils.KeyValueFormat.IntegerNumbersPairTransformer
          since 2.7. Replaced by Converter 
org.sonar.api.utils.KeyValueFormat.RulePriorityNumbersPairTransformer
          since 2.7. Replaced by Converter 
org.sonar.api.utils.KeyValueFormat.StringNumberPairTransformer
          since 2.7 replaced by Converter 
org.sonar.api.database.daos.MeasuresDao
          since 2.3 
org.sonar.api.checks.NoSonarFilter
          in 3.6. Replaced by NoSonarFilter 
org.sonar.api.rules.RulesCategory
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.rules.RuleUtils
          in 3.7. Commons Configuration must be replaced by Settings 
org.sonar.api.rules.Violation
          in 3.6. Replaced by Issue. 
org.sonar.wsclient.services.Violation
          in 3.6. Replaced by issues. 
org.sonar.api.violations.ViolationQuery
          in 3.6 for the merge of violations and reviews into issues. 
org.sonar.wsclient.services.ViolationQuery
          in 3.6. Replaced by issues. 
 

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

Deprecated Fields
org.sonar.api.measures.CoreMetrics.ABSTRACTNESS
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.ABSTRACTNESS_KEY
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.ACTIVE_REVIEWS
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.ACTIVE_REVIEWS_KEY
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.AFFERENT_COUPLINGS
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.AFFERENT_COUPLINGS_KEY
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.BRANCH_COVERAGE_HITS_DATA
          in 2.7. Replaced by metrics CoreMetrics.CONDITIONS_BY_LINE and CoreMetrics.COVERED_CONDITIONS_BY_LINE 
org.sonar.api.measures.CoreMetrics.BRANCH_COVERAGE_HITS_DATA_KEY
          in 2.7. Replaced by CoreMetrics.CONDITIONS_BY_LINE_KEY and CoreMetrics.COVERED_CONDITIONS_BY_LINE_KEY 
org.sonar.api.measures.CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION
          in 3.0 - see SONAR-3289 
org.sonar.api.measures.CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION_KEY
          in 3.0 - see SONAR-3289 
org.sonar.api.measures.CoreMetrics.COMMENT_BLANK_LINES
          since 3.3 - see SONAR-3768 
org.sonar.api.measures.CoreMetrics.COMMENT_BLANK_LINES_KEY
          since 3.3 - see SONAR-3768 
org.sonar.api.CoreProperties.CORE_AUTHENTICATOR_CLASS
          since 2.14. See http://jira.codehaus.org/browse/SONAR-3153. Replaced by CoreProperties.CORE_AUTHENTICATOR_REALM. 
org.sonar.api.CoreProperties.CORE_COVERAGE_PLUGIN_PROPERTY
          replaced in v3.4 by properties specific to languages, for example sonar.java.coveragePlugin See http://jira.codehaus.org/browse/SONARJAVA-39 for more details. 
org.sonar.api.CoreProperties.CORE_TENDENCY_DEPTH_DEFAULT_VALUE
          since 2.5. See http://jira.codehaus.org/browse/SONAR-4145 
org.sonar.api.CoreProperties.CORE_TENDENCY_DEPTH_PROPERTY
          since 3.6. See http://jira.codehaus.org/browse/SONAR-4145 
org.sonar.api.CoreProperties.CPD_ENGINE
          in 3.1 
org.sonar.api.CoreProperties.CPD_ENGINE_DEFAULT_VALUE
          in 3.1 
org.sonar.api.CoreProperties.CPD_IGNORE_IDENTIFIERS_DEFAULT_VALUE
          in 3.1 
org.sonar.api.CoreProperties.CPD_IGNORE_IDENTIFIERS_PROPERTY
          in 3.1 
org.sonar.api.CoreProperties.CPD_IGNORE_LITERALS_DEFAULT_VALUE
          in 3.1 
org.sonar.api.CoreProperties.CPD_IGNORE_LITERALS_PROPERTY
          in 3.1 
org.sonar.api.CoreProperties.CPD_MINIMUM_TOKENS_DEFAULT_VALUE
          in 3.1 
org.sonar.api.CoreProperties.CPD_MINIMUM_TOKENS_PROPERTY
          in 3.1 
org.sonar.api.measures.CoreMetrics.DISTANCE
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.DISTANCE_KEY
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.DOMAIN_REVIEWS
          in 3.6. Replaced by concept of issues. 
org.sonar.api.measures.CoreMetrics.EFFERENT_COUPLINGS
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.EFFERENT_COUPLINGS_KEY
          since 3.7.1 
org.sonar.api.batch.DecoratorBarriers.END_OF_VIOLATION_PERSISTENCE
          in 3.6. Issues are persisted at the end of analysis 
org.sonar.api.batch.DecoratorBarriers.END_OF_VIOLATION_TRACKING
          in 3.6. Replaced by DecoratorBarriers.ISSUES_TRACKED 
org.sonar.api.batch.DecoratorBarriers.END_OF_VIOLATIONS_GENERATION
          in 3.6. Replaced by DecoratorBarriers.ISSUES_ADDED 
org.sonar.api.measures.CoreMetrics.FALSE_POSITIVE_REVIEWS
          in 3.6. This measure is replaced by CoreMetrics.FALSE_POSITIVE_ISSUES. 
org.sonar.api.measures.CoreMetrics.FALSE_POSITIVE_REVIEWS_KEY
          in 3.6. This measure is replaced by CoreMetrics.FALSE_POSITIVE_ISSUES_KEY. 
org.sonar.api.utils.Logs.INFO
          default level is INFO since version 2.12. Please use your own logger. 
org.sonar.api.measures.CoreMetrics.INSTABILITY
          since 3.7.1 
org.sonar.api.measures.CoreMetrics.INSTABILITY_KEY
          since 3.7.1 
org.sonar.api.issue.IssueQuery.MAX_ISSUE_KEYS
          since 3.7. It's replaced by IssueQuery#MAX_PAGE_SIZE. 
org.sonar.api.measures.CoreMetrics.NEW_UNREVIEWED_VIOLATIONS
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.NEW_UNREVIEWED_VIOLATIONS_KEY
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.resources.Project.PARAM_REUSE_RULES_CONFIG
          since version 1.11. Constant moved to CoreProperties 
org.sonar.api.resources.Resource.QUALIFIER_CLASS
          since 2.6. Use Qualifiers.CLASS. 
org.sonar.api.resources.Resource.QUALIFIER_DIRECTORY
          since 2.6. Use Qualifiers.DIRECTORY. 
org.sonar.api.resources.Resource.QUALIFIER_FIELD
          since 2.6. Use Qualifiers.FIELD. 
org.sonar.api.resources.Resource.QUALIFIER_FILE
          since 2.6. Use Qualifiers.FILE. 
org.sonar.api.resources.Resource.QUALIFIER_LIB
          since 2.6. Use Qualifiers.LIBRARY. 
org.sonar.api.resources.Resource.QUALIFIER_METHOD
          since 2.6. Use Qualifiers.METHOD. 
org.sonar.api.resources.Resource.QUALIFIER_MODULE
          since 2.6. Use Qualifiers.MODULE. 
org.sonar.api.resources.Resource.QUALIFIER_PACKAGE
          since 2.6. Use Qualifiers.PACKAGE. 
org.sonar.api.resources.Resource.QUALIFIER_PROJECT
          since 2.6. Use Qualifiers.PROJECT. 
org.sonar.api.resources.Resource.QUALIFIER_SUBVIEW
          since 2.6. Use Qualifiers.SUBVIEW. 
org.sonar.api.resources.Resource.QUALIFIER_UNIT_TEST_CLASS
          since 2.6. Use Qualifiers.UNIT_TEST_FILE. 
org.sonar.api.resources.Resource.QUALIFIER_VIEW
          since 2.6. Use Qualifiers.VIEW. 
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_ENTITY
          since 2.6. Use Scopes.FILE. 
org.sonar.api.resources.Resource.SCOPE_SET
          since 2.6. Use Scopes.PROJECT. 
org.sonar.api.resources.Resource.SCOPE_SPACE
          since 2.6. Use Scopes.DIRECTORY. 
org.sonar.api.CoreProperties.SKIP_TENDENCIES_DEFAULT_VALUE
          since 3.6. See http://jira.codehaus.org/browse/SONAR-4145 
org.sonar.api.CoreProperties.SKIP_TENDENCIES_PROPERTY
          since 3.6. See http://jira.codehaus.org/browse/SONAR-4145 
org.sonar.api.batch.DecoratorBarriers.START_VIOLATION_PERSISTENCE
          in 3.6. Issues are persisted at the end of analysis. 
org.sonar.api.batch.DecoratorBarriers.START_VIOLATION_TRACKING
          in 3.6. Not required anymore. 
org.sonar.api.batch.DecoratorBarriers.START_VIOLATIONS_GENERATION
          in 3.6. Not required anymore. 
org.sonar.api.measures.CoreMetrics.UNASSIGNED_REVIEWS
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.UNASSIGNED_REVIEWS_KEY
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.UNPLANNED_REVIEWS
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.UNPLANNED_REVIEWS_KEY
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.UNREVIEWED_VIOLATIONS
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.measures.CoreMetrics.UNREVIEWED_VIOLATIONS_KEY
          in 3.6. This measure is not fed anymore since introduction of issues. 
org.sonar.api.web.UserRole.VIEWER
          use the constant USER since 1.12. 
 

Deprecated Methods
org.sonar.api.batch.SonarIndex.addResource(Resource)
          since 2.6. Use methods index() 
org.sonar.api.resources.ProjectFileSystem.addSourceDir(File)
          since 2.6 - ProjectFileSystem should be immutable See http://jira.codehaus.org/browse/SONAR-2126 
org.sonar.api.resources.ProjectFileSystem.addTestDir(File)
          since 2.6 - ProjectFileSystem should be immutable See http://jira.codehaus.org/browse/SONAR-2126 
org.sonar.api.notifications.NotificationDispatcher.Context.addUser(String)
          Use NotificationDispatcher.Context.addUser(String, NotificationChannel) instead. 
org.sonar.api.batch.SonarIndex.addViolation(Violation)
          in 3.6 
org.sonar.api.batch.SonarIndex.addViolation(Violation, boolean)
          in 3.6 
org.sonar.api.issue.IssueHandler.Context.assign(String)
          since 3.7.1 
org.sonar.api.resources.ResourceType.Builder.availableForFilters()
          since 3.0. Use ResourceType.Builder.setProperty(String, String) with "supportsMeasureFilters" set to "true". 
org.sonar.api.batch.bootstrap.ProjectBuilder.build(ProjectReactor)
          since 3.7 override ProjectBuilder.build(Context) instead 
org.sonar.api.batch.bootstrap.ProjectDefinition.create(Properties)
          in 2.12, because it uses external object to represent internal state. To ensure backward-compatibility with Ant task this method cannot clone properties, so other callers must explicitly make clone of properties before passing into this method. Thus better to use ProjectDefinition.create() with combination of other methods like ProjectDefinition.setProperties(Properties) and ProjectDefinition.setProperty(String, String). 
org.sonar.api.measures.RuleMeasure.createForCategory(Metric, Integer, Double)
          since 2.5. See SONAR-2007. 
org.sonar.api.security.ExternalUsersProvider.doGetUserDetails(String)
          replaced by ExternalUsersProvider.doGetUserDetails(org.sonar.api.security.ExternalUsersProvider.Context) since v. 3.1 
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 RulesProfile.getActiveRulesByRepository(String) instead. 
org.sonar.api.profiles.Alert.getAlertLabel(Metric.Level)
          since 3.4 because it does not manage alerts with variation 
org.sonar.api.resources.Project.getArtifactId()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 
org.sonar.api.rules.Rule.getCategoryId()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.utils.AnnotationUtils.getClassAnnotation(Object, Class)
          As of 3.1, replaced by AnnotationUtils.getAnnotation(Object,Class) 
org.sonar.api.batch.DefaultFormulaContext.getConfiguration()
          in 3.7. Use Settings. 
org.sonar.api.measures.FormulaContext.getConfiguration()
          in 3.7. Use Settings. 
org.sonar.api.resources.Project.getConfiguration()
          since 2.12. The component org.sonar.api.config.Settings must be used. 
org.sonar.api.Plugin.getDescription()
          since 2.2. The description must be set in the manifest. 
org.sonar.api.profiles.RulesProfile.getEnabled()
          since 3.3. Always return true. 
org.sonar.api.resources.Project.getExclusionPatterns()
          replaced by FileExclusions in version 3.5 
org.sonar.api.resources.Project.getFileSystem()
          replaced by ModuleFileSystem in 3.5 
org.sonar.api.resources.Project.getGroupId()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 
org.sonar.api.resources.ProjectFileSystem.getJavaSourceFiles()
          since 2.6 use ProjectFileSystem.mainFiles(String...) instead. See http://jira.codehaus.org/browse/SONAR-2126 
org.sonar.api.resources.ProjectUtils.getJavaSourceVersion(Project)
          since 2.6 use JavaUtils.getSourceVersion() instead. 
org.sonar.api.resources.ProjectUtils.getJavaVersion(Project)
          since 2.6 use JavaUtils.getTargetVersion() instead. 
org.sonar.api.Plugin.getKey()
          since 2.2. The key must be set in the manifest. 
org.sonar.api.security.SecurityRealm.getLoginPasswordAuthenticator()
          replaced by doGetAuthenticator in version 3.1 
org.sonar.api.Plugin.getName()
          since 2.2. The name must be set in the manifest. 
org.sonar.api.resources.Project.getPackaging()
          in 2.8. See http://jira.codehaus.org/browse/SONAR-2341 
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.config.PropertyDefinitions.getPropertiesByCategory()
          since 3.7 use PropertyDefinitions.propertiesByCategory(String) 
org.sonar.api.config.PropertyDefinitions.getPropertiesByCategory(String)
          since 3.7 use PropertyDefinitions.propertiesByCategory(String) 
org.sonar.api.resources.Project.getProperty(String)
          since 3.6. Replaced by Settings. 
org.sonar.api.profiles.RulesProfile.getProvided()
          since 3.3 not replaced 
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 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.api.measures.RuleMeasure.getRulePriority()
          since 2.14 use RuleMeasure.getSeverity() instead. See 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.api.resources.ProjectFileSystem.getSourceFiles(Language...)
          since 2.6 use ProjectFileSystem.mainFiles(String...) instead. See http://jira.codehaus.org/browse/SONAR-2126 
org.sonar.api.resources.Project.getTestExclusionPatterns()
          replaced by FileExclusions in version 3.5 
org.sonar.api.resources.ProjectFileSystem.getTestFiles(Language...)
          since 2.6 use ProjectFileSystem.testFiles(String...) instead. See http://jira.codehaus.org/browse/SONAR-2126 
org.sonar.api.batch.SonarIndex.getViolations(Resource)
          in 3.6 
org.sonar.api.batch.SonarIndex.getViolations(ViolationQuery)
          in 3.6 
org.sonar.api.resources.ProjectFileSystem.hasJavaSourceFiles()
          since 2.6 - API should be language agnostic 
org.sonar.api.resources.ProjectFileSystem.hasTestFiles(Language)
          since 2.6 - use language key instead of Language object 
org.sonar.api.security.LoginPasswordAuthenticator.init()
          in 2.14, but was left for backward compatibility - when this authenticator is not a part of SecurityRealm, otherwise has no effect and not invoked 
org.sonar.api.profiles.RulesProfile.isEnabled()
          since 3.3. Always return true. 
org.sonar.api.resources.Resource.isExcluded()
          since 2.6 should use SensorContext#isExcluded(resource). It will make inheritance of Resource easier. 
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.resources.Project.isLatestAnalysis()
          in 3.6. The analysis is now always the latest one (past analysis must be done in a chronological order). See http://jira.codehaus.org/browse/SONAR-4334 
org.sonar.api.utils.KeyValueFormat.parse(String, KeyValueFormat.Transformer)
          since 2.7 
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.batch.SensorContext.saveResource(Resource)
          use the methods index() 
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.setEnabled(Boolean)
          in 3.6. Replaced by Rule.setStatus(String status). 
org.sonar.api.profiles.RulesProfile.setEnabled(Boolean)
          since 3.3. 
org.sonar.api.resources.Resource.setExcluded(boolean)
          since 2.6 should use SensorContext#isExcluded(resource). It will make inheritance of Resource easier. 
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.resources.Project.setExclusionPatterns(String[])
          replaced by FileExclusions in version 3.5 
org.sonar.api.resources.Project.setFileSystem(ProjectFileSystem)
          since 2.6. See http://jira.codehaus.org/browse/SONAR-2126 
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.resources.Project.setLatestAnalysis(boolean)
          in 3.6. It's not possible to analyze a project before the latest known quality snapshot. See http://jira.codehaus.org/browse/SONAR-4334 
org.sonar.api.resources.Project.setPackaging(String)
          in 2.8. See http://jira.codehaus.org/browse/SONAR-2341 
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.profiles.RulesProfile.setProvided(Boolean)
          since 3.3 not replaced 
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.measures.RuleMeasure.setRuleCategory(Integer)
          since 2.5. See 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.api.measures.RuleMeasure.setRulePriority(RulePriority)
          since 2.14 use RuleMeasure.setSeverity(org.sonar.api.rules.RulePriority) instead. See 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.ActiveRule.setRulesProfile(RulesProfile)
          visibility should be reduced to protected or package 
org.sonar.api.utils.ZipUtils.unzipToTempDir(File)
          since 3.4 use by ModuleFileSystem.workingDir() or ServerFileSystem.getTempDir() 
org.sonar.api.rules.RulePriority.valueOfString(String)
          in 3.6 
 

Deprecated Constructors
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)
          in 2.5 
org.sonar.api.batch.Event(String, String, String, Snapshot)
          in 2.5 
org.sonar.api.utils.KeyValueFormat.DateConverter()
          in version 2.13. Replaced by KeyValueFormat.newDateConverter() 
org.sonar.api.measures.Metric()
          in 1.12. Use the Metric.Builder factory. 
org.sonar.api.measures.Metric(String)
          since 2.7 use the Metric.Builder factory. 
org.sonar.api.measures.Metric(String, Metric.ValueType)
          since 2.7 use the Metric.Builder factory. 
org.sonar.api.measures.Metric(String, String, Metric.ValueType, Integer, Boolean, String, Formula)
          since 2.7 use the Metric.Builder factory. 
org.sonar.api.measures.Metric(String, String, String, Metric.ValueType, Integer, Boolean, String)
          since 2.7 use the Metric.Builder factory. 
org.sonar.api.measures.Metric(String, String, String, Metric.ValueType, Integer, Boolean, String, boolean)
          since 2.7 use the Metric.Builder factory. 
org.sonar.api.batch.bootstrap.ProjectBuilder(ProjectReactor)
          since 3.7 use ProjectBuilder.ProjectBuilder() 
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. 
 



Copyright © 2009-2013 SonarSource. All Rights Reserved.