Deprecated API


Contents
Deprecated Interfaces
org.sonar.api.technicaldebt.batch.Characteristic
          since 4.3 
org.sonar.api.technicaldebt.server.Characteristic
          since 4.3. 
org.sonar.api.charts.Chart
          in 4.5.1, replaced by Javascript charts 
org.sonar.api.scan.filesystem.FileSystemFilter
          since 4.2 use InputFileFilter 
org.sonar.api.resources.InputFile
          in 4.2. Replaced by InputFile 
org.sonar.api.issue.IssueFilter
          since 4.0 
org.sonar.api.security.LoginPasswordAuthenticator
          replaced by Authenticator in version 3.1 
org.sonar.api.batch.maven.MavenPluginHandler
          since 4.5 we don't want any dependency on Maven anymore 
org.sonar.check.Message
          in 2.3 
org.sonar.api.scan.filesystem.ModuleFileSystem
          in 4.2. Replaced by FileSystem 
org.sonar.api.Plugin
          in 2.8. Use SonarPlugin instead. 
org.sonar.api.batch.bootstrap.ProjectBootstrapper
          since 4.3 All bootstrappers should use SQ Runner API and provide a set of properties 
org.sonar.api.resources.ProjectFileSystem
          since 3.5 replaced by ModuleFileSystem 
org.sonar.api.technicaldebt.batch.Requirement
          since 4.3 
org.sonar.api.batch.ResourceCreationLock
          since 4.2. File system is immutable and does not require this class anymore. 
org.sonar.api.batch.ResourceFilter
          since 4.2. Analysis is file-system oriented. See org.sonar.api.scan.filesystem.InputFileFilter 
org.sonar.api.web.RubyRailsWebservice
          in 4.2. Replaced by org.sonar.api.web.ws.WebService 
org.sonar.api.i18n.RuleI18n
          in 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885 
org.sonar.api.technicaldebt.batch.TechnicalDebtModel
          since 4.3 
org.sonar.api.rules.ViolationFilter
          in 3.6. Replaced by IssueFilter. 
org.sonar.api.web.Webservice
          in 4.2. Replaced by WebService 
 

Deprecated Classes
org.sonar.api.charts.AbstractChart
          in 4.5.1, replaced by Javascript charts 
org.sonar.api.web.AbstractDashboardWidget
          override org.sonar.api.web.AbstractRubyTemplate and implement org.sonar.api.web.RubyRailsWidget 
org.sonar.api.batch.AbstractSourceImporter
          since 4.2 Component indexing and source import are done by core and this extension is not used. 
org.sonar.api.checks.AnnotationCheckFactory
          since 4.2 use Checks 
org.sonar.api.rules.AnnotationRuleParser
          in 4.2. Replaced by RulesDefinitionAnnotationLoader 
org.sonar.api.batch.BatchExtensionDictionnary
          since 2.6 was only used by views 
org.sonar.api.charts.ChartParameters
          in 4.5.1, replaced by Javascript charts 
org.sonar.api.checks.CheckFactory
          since 4.2 use CheckFactory 
org.sonar.api.web.CodeColorizerFormat
          since 4.5.2 use Highlightable 
org.sonar.api.technicaldebt.batch.internal.DefaultCharacteristic
          since 4.3 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic
          since 4.3. 
org.sonar.api.technicaldebt.batch.internal.DefaultRequirement
          since 4.3 
org.sonar.api.scan.filesystem.FileQuery
          in 4.2. Replaced by FileSystem and FilePredicate 
org.sonar.api.resources.InputFileUtils
          since 5.0 as InputFile is deprecated 
org.sonar.api.resources.Java
          in 3.6 
org.sonar.api.resources.JavaFile
          since 4.2 use File. See http://docs.codehaus.org/display/SONAR/API+Changes for more details 
org.sonar.api.resources.JavaPackage
          since 4.2 use Directory instead 
org.sonar.api.batch.maven.MavenPlugin
          since 4.5 we don't want any dependency on Maven anymore 
org.sonar.api.batch.maven.MavenSurefireUtils
          since 4.5 we don't want any dependency on Maven anymore 
org.sonar.api.batch.maven.MavenUtils
          since 4.5 we don't want any dependency on Maven anymore 
org.sonar.api.resources.Method
          in 4.2. Only file system components are managed by SQ core (files/directories). 
org.sonar.api.checks.NoSonarFilter
          in 3.6. Replaced by NoSonarFilter 
org.sonar.api.batch.ProjectClasspath
          since 4.5 this is some Java specific stuff that should by handled by SQ Java plugin 
org.sonar.api.resources.ProjectUtils
          see method comments 
org.sonar.api.database.configuration.Property
          since 5.0 Hibernate is deprecated 
org.sonar.api.rules.RuleRepository
          in 4.2. Replaced by org.sonar.api.server.rule.RulesDefinition 
org.sonar.api.batch.SonarIndex
          since 4.5.2 should not be used by plugins. Everything should be accessed using SensorContext. 
org.sonar.api.batch.SquidUtils
          since 4.2 
org.sonar.api.utils.TempFileUtils
          since 4.0 use TempFolder 
org.sonar.api.rules.Violation
          in 3.6. Replaced by Issue. 
org.sonar.api.violations.ViolationQuery
          in 3.6 for the merge of violations and reviews into issues. 
org.sonar.api.utils.WorkUnit
          since 4.2. Use WorkDuration instead 
org.sonar.api.rules.XMLRuleParser
          in 4.2. Replaced by org.sonar.api.rule.RuleDefinitions#loadXml() 
 

Deprecated Enums
org.sonar.check.Cardinality
          since 4.4 
org.sonar.api.scan.filesystem.FileType
          in 4.2 
org.sonar.api.resources.Project.AnalysisType
          since 4.4 Since 4.3 SQ will no more run tests. So basically it's always reuse report. 
org.sonar.api.rules.RulePriority
          since 4.2 
org.sonar.api.web.Section
          add annotation org.sonar.api.web.NavigationSection to View extensions 
 

Deprecated Exceptions
org.sonar.api.utils.SonarException
          in 4.4. Use standard exceptions like IllegalArgumentException or IllegalStateException. Use MessageException for raising errors to end-users without displaying stackstrace. 
 

Deprecated Annotation Types
org.sonar.api.web.RequiredMeasures
          in 4.5. Not supported anymore in source viewer as Ruby on Rails is being dropped. 
 

Deprecated Fields
org.sonar.api.measures.CoreMetrics.ACCESSORS
          since 5.0. 
org.sonar.api.measures.CoreMetrics.ACCESSORS_KEY
          since 5.0. 
org.sonar.api.batch.bootstrap.ProjectDefinition.BINARIES_PROPERTY
          since 4.5.1 use SonarQube Java specific API 
org.sonar.api.resources.Scopes.BLOCK_UNIT
          since 4.3 resources under FILE level are no more be supported since 4.2. 
org.sonar.api.CoreProperties.CATEGORY_DIFFERENTIAL_VIEWS
          since 4.0. See http://jira.codehaus.org/browse/SONAR-4660. Do not forget to remove the properties from core bundles 
org.sonar.api.CoreProperties.CATEGORY_DUPLICATIONS
          since 4.0. See http://jira.codehaus.org/browse/SONAR-4660. Do not forget to remove the properties from core bundles 
org.sonar.api.CoreProperties.CATEGORY_L10N
          since 4.0. See http://jira.codehaus.org/browse/SONAR-4660. Do not forget to remove the properties from core bundles 
org.sonar.api.resources.Qualifiers.CLASS
          since 4.2 now java files are considered as regular files. Use Qualifiers.FILE instead. 
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.COMMENTED_OUT_CODE_LINES
          since 4.2 - see SONAR-4990 
org.sonar.api.measures.CoreMetrics.COMMENTED_OUT_CODE_LINES_KEY
          since 4.2 - see SONAR-4990 
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_INCLUDED_MODULES_PROPERTY
          since 4.3. See http://jira.codehaus.org/browse/SONAR-5109 
org.sonar.api.CoreProperties.CORE_SKIPPED_MODULES_PROPERTY
          since 4.3. See http://jira.codehaus.org/browse/SONAR-5109 
org.sonar.api.CoreProperties.CORE_VIOLATION_LOCALE_PROPERTY
          since 4.1. See http://jira.codehaus.org/browse/SONAR-4875 
org.sonar.api.CoreProperties.CPD_MINIMUM_TOKENS_PROPERTY
          in 3.1 
org.sonar.api.CoreProperties.CPD_SKIP_PROPERTY
          in 5.0 
org.sonar.api.measures.CoreMetrics.DEPENDENCY_MATRIX
          since 5.0 this is an internal metric that should not be accessed by plugins 
org.sonar.api.measures.CoreMetrics.DEPENDENCY_MATRIX_KEY
          since 5.0 this is an internal metric that should not be accessed by plugins 
org.sonar.api.measures.CoreMetrics.DEPTH_IN_TREE
          since 4.0. See SONAR-4643 
org.sonar.api.measures.CoreMetrics.DEPTH_IN_TREE_KEY
          since 4.0. See SONAR-4643 
org.sonar.api.CoreProperties.DRY_RUN_EXCLUDE_PLUGINS
          in 4.0 replaced by CoreProperties.PREVIEW_EXCLUDE_PLUGINS 
org.sonar.api.CoreProperties.DRY_RUN_EXCLUDE_PLUGINS_DEFAULT_VALUE
          in 4.0 replaced by CoreProperties.PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE 
org.sonar.api.CoreProperties.DRY_RUN_INCLUDE_PLUGINS
          in 4.0 replaced by CoreProperties.PREVIEW_INCLUDE_PLUGINS 
org.sonar.api.CoreProperties.DRY_RUN_INCLUDE_PLUGINS_DEFAULT_VALUE
          in 4.0 replaced by CoreProperties.PREVIEW_INCLUDE_PLUGINS_DEFAULT_VALUE 
org.sonar.api.CoreProperties.DRY_RUN_READ_TIMEOUT_SEC
          in 4.0 replaced by CoreProperties.PREVIEW_READ_TIMEOUT_SEC 
org.sonar.api.measures.CoreMetrics.DUPLICATIONS_DATA
          since 4.5. Internal storage of duplication is not an API. 
org.sonar.api.measures.CoreMetrics.DUPLICATIONS_DATA_KEY
          since 4.5. Internal storage of duplication is not an API. 
org.sonar.api.CoreProperties.DYNAMIC_ANALYSIS_PROPERTY
          since 4.3. See http://jira.codehaus.org/browse/SONAR-5185 
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.resources.Qualifiers.FIELD
          since 4.2 resources under FILE level will no more be supported. 
org.sonar.api.measures.CoreMetrics.LCOM4
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.measures.CoreMetrics.LCOM4_BLOCKS
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.measures.CoreMetrics.LCOM4_BLOCKS_KEY
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.measures.CoreMetrics.LCOM4_DISTRIBUTION
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.measures.CoreMetrics.LCOM4_DISTRIBUTION_KEY
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.measures.CoreMetrics.LCOM4_KEY
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.batch.bootstrap.ProjectDefinition.LIBRARIES_PROPERTY
          since 4.5.1 use SonarQube Java specific API 
org.sonar.api.resources.Qualifiers.METHOD
          since 4.2 resources under FILE level will no more be supported. 
org.sonar.api.measures.CoreMetrics.NUMBER_OF_CHILDREN
          since 4.0. See SONAR-4643 
org.sonar.api.measures.CoreMetrics.NUMBER_OF_CHILDREN_KEY
          since 4.0. See SONAR-4643 
org.sonar.api.resources.Qualifiers.PACKAGE
          since 4.2 now packages are considered as regular directories. Use Qualifiers.DIRECTORY instead. 
org.sonar.api.measures.CoreMetrics.PACKAGE_CYCLES
          since 5.0 use CoreMetrics.DIRECTORY_CYCLES 
org.sonar.api.measures.CoreMetrics.PACKAGE_CYCLES_KEY
          since 5.0 use CoreMetrics.DIRECTORY_CYCLES_KEY 
org.sonar.api.measures.CoreMetrics.PACKAGE_EDGES_WEIGHT
          since 5.0 use CoreMetrics.DIRECTORY_EDGES_WEIGHT 
org.sonar.api.measures.CoreMetrics.PACKAGE_EDGES_WEIGHT_KEY
          since 5.0 use CoreMetrics.DIRECTORY_EDGES_WEIGHT_KEY 
org.sonar.api.measures.CoreMetrics.PACKAGE_FEEDBACK_EDGES
          since 5.0 use CoreMetrics.DIRECTORY_FEEDBACK_EDGES 
org.sonar.api.measures.CoreMetrics.PACKAGE_FEEDBACK_EDGES_KEY
          since 5.0 use CoreMetrics.DIRECTORY_FEEDBACK_EDGES_KEY 
org.sonar.api.measures.CoreMetrics.PACKAGE_TANGLE_INDEX
          since 5.0 use CoreMetrics.DIRECTORY_TANGLE_INDEX 
org.sonar.api.measures.CoreMetrics.PACKAGE_TANGLE_INDEX_KEY
          since 5.0 use CoreMetrics.DIRECTORY_TANGLE_INDEX_KEY 
org.sonar.api.measures.CoreMetrics.PACKAGE_TANGLES
          since 5.0 use CoreMetrics.DIRECTORY_TANGLES 
org.sonar.api.measures.CoreMetrics.PACKAGE_TANGLES_KEY
          since 5.0 use CoreMetrics.DIRECTORY_TANGLES_KEY 
org.sonar.api.measures.CoreMetrics.PACKAGES
          since 4.2 there is now only directory 
org.sonar.api.measures.CoreMetrics.PACKAGES_KEY
          since 4.2 there is now only directory 
org.sonar.api.resources.Qualifiers.PARAGRAPH
          since 4.2 resources under FILE level will no more be supported. 
org.sonar.api.measures.CoreMetrics.PROFILE
          since 4.4 doesn't support multi-language. See CoreMetrics.QUALITY_PROFILES_KEY 
org.sonar.api.measures.CoreMetrics.PROFILE_KEY
          since 4.4 doesn't support multi-language. See CoreMetrics.QUALITY_PROFILES_KEY 
org.sonar.api.measures.CoreMetrics.PROFILE_VERSION
          since 4.4 doesn't support multi-language. See CoreMetrics.QUALITY_PROFILES_KEY 
org.sonar.api.measures.CoreMetrics.PROFILE_VERSION_KEY
          since 4.4 doesn't support multi-language. See CoreMetrics.QUALITY_PROFILES_KEY 
org.sonar.api.resources.Scopes.PROGRAM_UNIT
          since 4.3 resources under FILE level are no more be supported since 4.2. 
org.sonar.api.CoreProperties.PROJECT_LANGUAGE_PROPERTY
          since 4.2 projects are now multi-language 
org.sonar.api.resources.Resource.QUALIFIER_CLASS
          since 2.6. Use Qualifiers.CLASS. 
org.sonar.wsclient.services.Resource.QUALIFIER_CLASS
          since 4.2 
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.wsclient.services.Resource.QUALIFIER_PACKAGE
          since 4.2 
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.web.NavigationSection.RESOURCE_TAB
          in 4.5, as it costs too much to maintain and update. 
org.sonar.api.measures.CoreMetrics.RFC
          since 4.2. See SONAR-5042 
org.sonar.api.measures.CoreMetrics.RFC_DISTRIBUTION
          since 4.2. See SONAR-5042 
org.sonar.api.measures.CoreMetrics.RFC_DISTRIBUTION_KEY
          since 4.2. See SONAR-5042 
org.sonar.api.measures.CoreMetrics.RFC_KEY
          since 4.2. See SONAR-5042 
org.sonar.api.measures.CoreMetrics.SCM_AUTHORS_BY_LINE
          since 5.0 SCM data will no more be stored as measures 
org.sonar.api.measures.CoreMetrics.SCM_AUTHORS_BY_LINE_KEY
          since 5.0 SCM data will no more be stored as measures 
org.sonar.api.measures.CoreMetrics.SCM_LAST_COMMIT_DATETIMES_BY_LINE
          since 5.0 SCM data will no more be stored as measures 
org.sonar.api.measures.CoreMetrics.SCM_LAST_COMMIT_DATETIMES_BY_LINE_KEY
          since 5.0 SCM data will no more be stored as measures 
org.sonar.api.measures.CoreMetrics.SCM_REVISIONS_BY_LINE
          since 5.0 SCM data will no more be stored as measures 
org.sonar.api.measures.CoreMetrics.SCM_REVISIONS_BY_LINE_KEY
          since 5.0 SCM data will no more be stored as measures 
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.profiles.RulesProfile.SONAR_WAY_FINDBUGS_NAME
          in 4.2. Use your own constant. 
org.sonar.api.profiles.RulesProfile.SONAR_WAY_NAME
          in 4.2. Use your own constant. 
org.sonar.api.batch.bootstrap.ProjectDefinition.SOURCE_DIRS_PROPERTY
          since 4.5 use ProjectDefinition.SOURCES_PROPERTY 
org.sonar.api.batch.bootstrap.ProjectDefinition.SOURCE_FILES_PROPERTY
          since 4.5 use ProjectDefinition.SOURCES_PROPERTY 
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.profiles.RulesProfile.SUN_CONVENTIONS_NAME
          in 4.2. Use your own constant. 
org.sonar.api.measures.CoreMetrics.SUSPECT_LCOM4_DENSITY
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.measures.CoreMetrics.SUSPECT_LCOM4_DENSITY_KEY
          in 4.1. See http://jira.codehaus.org/browse/SONAR-4853 
org.sonar.api.batch.bootstrap.ProjectDefinition.TEST_DIRS_PROPERTY
          since 4.5 use ProjectDefinition.TESTS_PROPERTY 
org.sonar.api.batch.bootstrap.ProjectDefinition.TEST_FILES_PROPERTY
          since 4.5 use ProjectDefinition.TESTS_PROPERTY 
org.sonar.api.web.UserRole.VIEWER
          use the constant USER since 1.12. 
 

Deprecated Methods
org.sonar.api.batch.bootstrap.ProjectDefinition.addBinaryDir(File)
          since 4.5.1 use SonarQube Java specific API 
org.sonar.api.batch.bootstrap.ProjectDefinition.addBinaryDir(String)
          since 4.5.1 use SonarQube Java specific API 
org.sonar.api.issue.NoSonarFilter.addComponent(String, Set)
          since 5.0 use NoSonarFilter.noSonarInFile(InputFile, Set) 
org.sonar.api.config.Settings.addEnvironmentVariables()
          since 4.4 For embedding purpose all properties should be provided by the bootstrapper 
org.sonar.api.batch.bootstrap.ProjectDefinition.addLibrary(String)
          since 4.5.1 use SonarQube Java specific API 
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.batch.bootstrap.ProjectDefinition.addSourceDirs(File...)
          since 4.5 use ProjectDefinition.addSources(File...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.addSourceDirs(String...)
          since 4.5 use ProjectDefinition.addSources(String...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.addSourceFiles(File...)
          since 4.5 use ProjectDefinition.addSources(File...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.addSourceFiles(String...)
          since 4.5 use ProjectDefinition.addSources(File...) 
org.sonar.api.config.Settings.addSystemProperties()
          since 4.4 For embedding purpose all properties should be provided by the bootstrapper 
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.batch.bootstrap.ProjectDefinition.addTestDirs(File...)
          since 4.5 use ProjectDefinition.addTests(File...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.addTestDirs(String...)
          since 4.5 use ProjectDefinition.addTests(String...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.addTestFiles(File...)
          since 4.5 use ProjectDefinition.addTests(File...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.addTestFiles(String...)
          since 4.5 use ProjectDefinition.addTests(String...) 
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.scan.filesystem.ModuleFileSystem.binaryDirs()
          since 4.2 sonar.binaries will be converted to java specific property 
org.sonar.api.batch.bootstrap.ProjectBuilder.build(ProjectReactor)
          since 3.7 override ProjectBuilder.build(Context) instead 
org.sonar.wsclient.issue.Issue.componentId()
          since 4.4. Use Issue.componentKey() instead 
org.sonar.api.batch.SquidUtils.convertJavaFileKeyFromSquidFormat(String)
          since 4.2 JavaFile is deprecated 
org.sonar.api.batch.SquidUtils.convertJavaPackageKeyFromSquidFormat(String)
          since 4.2 JavaPackage is deprecated 
org.sonar.api.batch.SquidUtils.convertToSquidKeyFormat(JavaFile)
          since 4.0 
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.FileLinesContextFactory.createFor(Resource)
          since 4.4 use FileLinesContextFactory.createFor(InputFile) 
org.sonar.api.measures.RuleMeasure.createForCategory(Metric, Integer, Double)
          since 2.5. See SONAR-2007. 
org.sonar.api.measures.RuleMeasure.createForRule(Metric, Rule, Double)
          since 4.4 use RuleMeasure.createForRule(Metric, RuleKey, Double) 
org.sonar.api.server.ws.WebService.NewAction.createParam(String, String)
          since 4.4. Use WebService.NewAction.createParam(String paramKey) instead. 
org.sonar.api.batch.CpdMapping.createResource(File, List)
          since 4.2 not used anymore 
org.sonar.api.security.ExternalUsersProvider.doGetUserDetails(String)
          replaced by ExternalUsersProvider.doGetUserDetails(org.sonar.api.security.ExternalUsersProvider.Context) since v. 3.1 
org.sonar.api.technicaldebt.batch.Requirement.factor()
          since 4.2 
org.sonar.api.technicaldebt.batch.internal.DefaultRequirement.factor()
          since 4.2 
org.sonar.api.technicaldebt.server.Characteristic.factor()
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.factor()
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.factorValue()
          since 4.3 
org.sonar.api.rules.RuleFinder.findById(int)
          since 4.4, Please use RuleFinder.findByKey(org.sonar.api.rule.RuleKey)} 
org.sonar.api.utils.KeyValueFormat.format(Bag, int)
          use Multiset from google collections instead of commons-collections bags 
org.sonar.api.resources.File.fromIOFile(File, List)
          since 4.2 use File.fromIOFile(java.io.File, Project) 
org.sonar.api.resources.File.fromIOFile(File, Project)
          since 4.5 use FileSystem.inputFile(org.sonar.api.batch.fs.FilePredicate) 
org.sonar.api.technicaldebt.server.Characteristic.function()
          since 4.3. return null 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.function()
          since 4.2 
org.sonar.api.resources.Project.getAnalysisType()
          since 4.4 Since 4.3 SQ will no more run tests. So basically it's always reuse report. 
org.sonar.api.resources.Project.getArtifactId()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 
org.sonar.api.batch.bootstrap.ProjectDefinition.getBinaries()
          since 4.5.1 use SonarQube Java specific API 
org.sonar.api.rules.Rule.getCardinality()
          since 4.4, use Rule.isTemplate() 
org.sonar.api.rules.Rule.getCharacteristicId()
          since 4.4, use Rule.getCharacteristicKey() 
org.sonar.api.utils.AnnotationUtils.getClassAnnotation(Object, Class)
          As of 3.1, replaced by AnnotationUtils.getAnnotation(Object,Class) 
org.sonar.api.rules.Rule.getDefaultCharacteristicId()
          since 4.4, use Rule.getDefaultCharacteristicKey() 
org.sonar.api.Plugin.getDescription()
          since 2.2. The description must be set in the manifest. 
org.sonar.api.i18n.RuleI18n.getDescription(String, String, Locale)
          since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885 
org.sonar.api.platform.ServerFileSystem.getExtensions(String, String...)
          since 4.1 
org.sonar.api.batch.fs.internal.DeprecatedDefaultInputFile.getFile()
          in 4.2. Use DefaultInputFile.file() 
org.sonar.api.batch.fs.internal.DeprecatedDefaultInputFile.getFileBaseDir()
          in 4.2. Replaced by FileSystem.baseDir() 
org.sonar.api.resources.Project.getFileSystem()
          replaced by ModuleFileSystem in 3.5 
org.sonar.api.source.Symbol.getFullyQualifiedName()
          in 4.3 not used. 
org.sonar.api.resources.Project.getGroupId()
          since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 
org.sonar.api.measures.FileLinesContext.getIntValue(String, int)
          since 5.0 sensors should not read data 
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.Plugin.getKey()
          since 2.2. The key must be set in the manifest. 
org.sonar.api.resources.Project.getLanguage()
          since 4.2 use FileSystem.languages() 
org.sonar.api.resources.Project.getLanguageKey()
          since 4.2 use FileSystem.languages() 
org.sonar.api.batch.bootstrap.ProjectDefinition.getLibraries()
          since 4.5.1 use SonarQube Java specific API 
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.i18n.RuleI18n.getName(Rule, Locale)
          since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885 
org.sonar.api.i18n.RuleI18n.getName(String, String, Locale)
          since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885 
org.sonar.api.rules.ActiveRule.getNoteCreatedAt()
          in 4.4. Feature dropped. 
org.sonar.api.rules.ActiveRule.getNoteData()
          in 4.4. Feature dropped. 
org.sonar.api.rules.ActiveRule.getNoteUpdatedAt()
          in 4.4. Feature dropped. 
org.sonar.api.rules.ActiveRule.getNoteUserLogin()
          in 4.4. Feature dropped. 
org.sonar.api.resources.Project.getPackaging()
          in 2.8. See http://jira.codehaus.org/browse/SONAR-2341 
org.sonar.api.i18n.RuleI18n.getParamDescription(String, String, String, Locale)
          since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885 
org.sonar.api.rules.Rule.getParent()
          since 4.4, use Rule.getTemplate() 
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.api.rules.Violation.getPriority()
          since 2.5 use Violation.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.api.batch.bootstrap.ProjectDefinition.getProperties()
          since 5.0 use ProjectDefinition.properties() 
org.sonar.api.batch.fs.internal.DeprecatedDefaultInputFile.getRelativePath()
          in 4.2. Use DefaultInputFile.relativePath() 
org.sonar.api.measures.Measure.getRequirement()
          since 4.3. 
org.sonar.api.measures.RuleMeasure.getRule()
          since 4.4 use RuleMeasure.ruleKey() 
org.sonar.wsclient.services.ResourceQuery.getRuleCategories()
          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.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.Project.getSettings()
          since 5.0 
org.sonar.api.batch.SonarIndex.getSource(Resource)
          since 5.0 sources are no more stored in SQ as a single blob. Use InputFile.file() to read file content from disk. 
org.sonar.api.batch.bootstrap.ProjectDefinition.getSourceDirs()
          since 4.5 use ProjectDefinition.sources() 
org.sonar.api.batch.bootstrap.ProjectDefinition.getSourceFiles()
          since 4.5 use ProjectDefinition.sources() 
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.measures.FileLinesContext.getStringValue(String, int)
          since 5.0 sensors should not read data 
org.sonar.api.batch.bootstrap.ProjectDefinition.getTestDirs()
          since 4.5 use ProjectDefinition.tests() 
org.sonar.api.batch.bootstrap.ProjectDefinition.getTestFiles()
          since 4.5 use ProjectDefinition.tests() 
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.profiles.RulesProfile.getUsed()
          profile versioning is dropped in 4.4. Always returns -1. 
org.sonar.api.profiles.RulesProfile.getVersion()
          profile versioning is dropped in 4.4. Always returns -1. 
org.sonar.api.batch.DecoratorContext.getViolations()
          in 3.6, replaced by Issuable 
org.sonar.api.batch.SonarIndex.getViolations(Resource)
          in 3.6 
org.sonar.api.batch.SonarIndex.getViolations(ViolationQuery)
          in 3.6 
org.sonar.api.batch.DecoratorContext.getViolations(ViolationQuery)
          in 3.6, replaced by Issuable 
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.batch.SensorContext.index(Resource)
          since 4.2 Resource indexing is done by the platform for all physical resources. 
org.sonar.api.batch.SensorContext.index(Resource, Resource)
          since 4.2 Resource indexing is done by the platform for all physical resources. 
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.resources.Scopes.isBlockUnit(Resource)
          since 4.3 resources under FILE level are no more be supported since 4.2. 
org.sonar.api.resources.ResourceUtils.isClass(Resource)
          since 4.2 CLA qualifier is deprecated 
org.sonar.api.resources.Qualifiers.isClass(Resource)
          since 4.2 CLA qualifier is deprecated 
org.sonar.api.resources.Resource.isExcluded()
          since 2.6. 
org.sonar.api.batch.SensorContext.isExcluded(Resource)
          since 4.2 Excluded resources are not indexed. 
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.batch.SensorContext.isIndexed(Resource, boolean)
          since 4.2 Excluded resources are not indexed. 
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.resources.ResourceUtils.isPackage(Resource)
          since 4.2 Package are now directory. Use ResourceUtils.isDirectory(Resource) 
org.sonar.api.resources.Qualifiers.isPackage(Resource)
          since 4.2 Package is now a directory. Use Qualifiers.isDirectory(Resource) 
org.sonar.api.resources.Scopes.isProgramUnit(Resource)
          since 4.3 resources under FILE level are no more be supported since 4.2. 
org.sonar.api.technicaldebt.server.Characteristic.isRequirement()
          since 4.3 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.isRequirement()
          since 4.3 
org.sonar.api.technicaldebt.batch.Requirement.offset()
          since 4.2 
org.sonar.api.technicaldebt.batch.internal.DefaultRequirement.offset()
          since 4.2 
org.sonar.api.technicaldebt.server.Characteristic.offset()
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.offset()
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.offsetUnit()
          since 4.3 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.offsetValue()
          since 4.3 
org.sonar.api.server.ws.Request.param(String, String)
          to be dropped in 4.4. Default values are declared in ws metadata 
org.sonar.api.server.ws.Request.paramAsBoolean(String, boolean)
          to be dropped in 4.4. Default values must be declared in WebService then this method can be replaced by Request.mandatoryParamAsBoolean(String). 
org.sonar.api.server.ws.Request.paramAsInt(String, int)
          to be dropped in 4.4. Default values must be declared in WebService then this method can be replaced by Request.mandatoryParamAsInt(String). 
org.sonar.api.server.ws.Request.paramAsLong(String, long)
          to be dropped in 4.4. Default values must be declared in WebService then this method can be replaced by Request.mandatoryParamAsLong(String). 
org.sonar.api.measures.MeasuresFilters.requirement(Metric, Requirement)
          since 4.3 
org.sonar.api.technicaldebt.batch.TechnicalDebtModel.requirements()
          since 4.3. Always return empty list 
org.sonar.api.technicaldebt.batch.TechnicalDebtModel.requirementsById(Integer)
          since 4.3. Always return null 
org.sonar.api.technicaldebt.batch.TechnicalDebtModel.requirementsByRule(RuleKey)
          since 4.3. Always return null 
org.sonar.api.batch.bootstrap.ProjectDefinition.resetSourceDirs()
          since 4.5 use ProjectDefinition.resetSources() 
org.sonar.api.batch.bootstrap.ProjectDefinition.resetTestDirs()
          since 4.5 use ProjectDefinition.resetTests() 
org.sonar.api.resources.ProjectFileSystem.resolvePath(String)
          since 5.0 use FileSystem.resolvePath(String) 
org.sonar.api.technicaldebt.server.Characteristic.rootId()
          since 4.3. return null 
org.sonar.api.technicaldebt.server.Characteristic.ruleKey()
          since 4.3. return null 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.ruleKey()
          since 4.2 
org.sonar.api.batch.SensorContext.saveResource(Resource)
          use the methods index() 
org.sonar.api.batch.SensorContext.saveSource(Resource, String)
          since 4.2 Source import is done by the platform 
org.sonar.api.batch.SensorContext.saveViolation(Violation)
          in 3.6, replaced by Issuable 
org.sonar.api.batch.DecoratorContext.saveViolation(Violation)
          in 3.6, replaced by Issuable 
org.sonar.api.batch.SensorContext.saveViolation(Violation, boolean)
          in 3.6, replaced by Issuable 
org.sonar.api.batch.DecoratorContext.saveViolation(Violation, boolean)
          in 3.6, replaced by Issuable 
org.sonar.api.batch.SensorContext.saveViolations(Collection)
          in 3.6, replaced by Issuable 
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.resources.Project.setAnalysisType(Project.AnalysisType)
          since 4.4 Since 4.3 SQ will no more run tests. So basically it's always reuse report. 
org.sonar.api.rules.Rule.setCardinality(Cardinality)
          since 4.4, use Rule.setIsTemplate(boolean) 
org.sonar.api.rules.Rule.setCharacteristicId(Integer)
          since 4.4, use Rule.setCharacteristicKey(String) 
org.sonar.api.rules.Rule.setDefaultCharacteristicId(Integer)
          since 4.4, use Rule.setDefaultCharacteristicKey(String) 
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.technicaldebt.batch.internal.DefaultRequirement.setFactor(WorkUnit)
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setFactor(WorkUnit)
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setFactorUnit(WorkDuration.UNIT)
          since 4.3 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setFactorValue(Integer)
          since 4.3 
org.sonar.api.resources.Project.setFileSystem(ProjectFileSystem)
          since 2.6. See http://jira.codehaus.org/browse/SONAR-2126 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setFunction(String)
          since 4.2 
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.measures.Measure.setId(Long)
          since 4.4 not used 
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.technicaldebt.batch.internal.DefaultRequirement.setOffset(WorkUnit)
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setOffset(WorkUnit)
          since 4.2 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setOffsetUnit(WorkDuration.UNIT)
          since 4.3 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setOffsetValue(Integer)
          since 4.3 
org.sonar.api.resources.Project.setPackaging(String)
          in 2.8. See http://jira.codehaus.org/browse/SONAR-2341 
org.sonar.api.rules.Rule.setParent(Rule)
          since 4.4, use Rule.setTemplate(Rule)} 
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.ActiveRule.setPriority(RulePriority)
          since 2.5 use ActiveRule.setSeverity(RulePriority) instead. See http://jira.codehaus.org/browse/SONAR-1829 
org.sonar.api.batch.bootstrap.ProjectDefinition.setProperties(Properties)
          since 5.0 use ProjectDefinition.setProperties(Map) 
org.sonar.api.measures.Measure.setRequirement(Requirement)
          since 4.3 
org.sonar.api.measures.RuleMeasure.setRule(Rule)
          since 4.4 use RuleMeasure.setRuleKey(org.sonar.api.rule.RuleKey) 
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.wsclient.services.Measure.setRuleCategory(String)
          since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.setRuleKey(RuleKey)
          since 4.2 
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.batch.bootstrap.ProjectDefinition.setSourceDirs(File...)
          since 4.5 use ProjectDefinition.setSources(File...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.setSourceDirs(String...)
          since 4.5 use ProjectDefinition.setSources(String...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.setTestDirs(File...)
          since 4.5 use ProjectDefinition.setTests(File...) 
org.sonar.api.batch.bootstrap.ProjectDefinition.setTestDirs(String...)
          since 4.5 use ProjectDefinition.setTests(String...) 
org.sonar.api.profiles.RulesProfile.setUsed(Boolean)
          profile versioning is dropped in 4.4. Always returns -1. 
org.sonar.api.profiles.RulesProfile.setVersion(int)
          profile versioning is dropped in 4.4. Always returns -1. 
org.sonar.api.scan.filesystem.ModuleFileSystem.sourceDirs()
          since 4.2 use FileSystem.files(org.sonar.api.batch.fs.FilePredicate) to get all files with type InputFile.Type#MAIN. 
org.sonar.api.scan.filesystem.ModuleFileSystem.testDirs()
          since 4.2 use FileSystem.files(org.sonar.api.batch.fs.FilePredicate) to get all files with type InputFile.Type#TEST. 
org.sonar.api.resources.ProjectUtils.toIoFiles(Collection)
          in 4.2. Replaced by org.sonar.api.resources.InputFileUtils#toFiles() 
org.sonar.api.technicaldebt.server.internal.DefaultCharacteristic.toUnit(String)
          since 4.3 
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.resources.Directory(String)
          since 4.2 use Directory.fromIOFile(java.io.File, Project) 
org.sonar.api.resources.Directory(String, Language)
          since 4.2 use Directory.fromIOFile(java.io.File, Project) 
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.resources.File(Language, String)
          since 4.2 use File.fromIOFile(java.io.File, Project) 
org.sonar.api.resources.File(Language, String, String)
          since 4.2 use File.fromIOFile(java.io.File, Project) 
org.sonar.api.resources.File(String)
          since 4.2 use File.fromIOFile(java.io.File, Project) 
org.sonar.api.resources.File(String, String)
          since 4.2 use File.fromIOFile(java.io.File, Project) 
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, String, Metric.ValueType, Integer, Boolean, String)
          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.measures.RuleMeasure(Metric, Rule, RulePriority, Integer)
          since 4.4 use RuleMeasure.RuleMeasure(Metric, RuleKey, RulePriority, Integer) 
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. 
 

Deprecated Enum Constants
org.sonar.api.batch.sensor.highlighting.TypeOfText.CPP_DOC
          use TypeOfText.COMMENT 
 



Copyright © 2009–2015 SonarSource. All rights reserved.