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.DefaultProjectFileSystem.addSourceDir(File)
since 2.6, because should be immutable |
org.sonar.batch.DefaultProjectFileSystem2.addSourceDir(File)
since 2.6, because should be immutable |
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.resources.DefaultProjectFileSystem.addTestDir(File)
since 2.6, because should be immutable |
org.sonar.batch.DefaultProjectFileSystem2.addTestDir(File)
since 2.6, because should be immutable |
org.sonar.squid.Squid.aggregate()
use Squid.decorateSourceCodeTreeWith(MetricDef...) instead |
org.sonar.channel.CodeBuffer.close()
in 2.12, do not use anymore. |
org.sonar.batch.Batch.create(ProjectReactor, Configuration, Object...)
in version 2.12 |
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 http://jira.codehaus.org/browse/SONAR-2007 |
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.gwt.ui.Icons.forPriority(String)
since 2.5 use Icons.forSeverity(String) |
org.sonar.api.profiles.RulesProfile.getActiveRulesByPlugin(String)
since 2.3 use RulesProfile.getActiveRulesByRepository(String) instead. |
org.sonar.api.resources.Project.getArtifactId()
since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 |
org.sonar.channel.CodeReaderConfiguration.getBufferCapacity()
in 2.12, do not use anymore. |
org.sonar.api.rules.Rule.getCategoryId()
since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 |
org.sonar.squid.api.CheckMessage.getChecker()
replaced by getCheck() since 2.12. Warning, to be called only if check is CodeCheck. |
net.sourceforge.pmd.cpd.cppast.SimpleCharStream.getColumn()
|
org.sonar.api.resources.Project.getConfiguration()
since 2.12. The component org.sonar.api.config.Settings must be used. |
org.sonar.squid.api.SourceCode.getData(Metric)
since 2.1. It's replaced by getData(MetricDef). It's still defined for binary compatibility. |
org.sonar.api.Plugin.getDescription()
since 2.2. The description must be set in the manifest. |
org.sonar.squid.api.SourceCode.getDouble(Metric)
since 2.1. It's replaced by getDouble(MetricDef). It's still defined for binary compatibility. |
org.sonar.api.resources.Project.getGroupId()
since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 |
org.sonar.squid.api.SourceCode.getInt(Metric)
since 2.1. It's replaced by getInt(MetricDef). It's still defined for binary compatibility. |
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.DefaultProjectFileSystem.getJavaSourceFiles()
in 2.6, use DefaultProjectFileSystem.mainFiles(String...) instead |
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.plugins.dbcleaner.runner.DefaultPurgeContext.getLastSnapshotId()
|
org.sonar.api.database.model.RuleFailureModel.getLevel()
since 2.7. Replace by getPriority() |
net.sourceforge.pmd.cpd.cppast.SimpleCharStream.getLine()
|
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.plugins.cobertura.api.CoberturaUtils.getReport(Project)
in 2.8, because assumes that Sonar executed from Maven. Not used any more in sonar-cobertura-plugin.
See http://jira.codehaus.org/browse/SONAR-2321 |
org.sonar.api.resources.Project.getReuseExistingRulesConfig()
since 2.5. See discussion from http://jira.codehaus.org/browse/SONAR-1873 |
org.sonar.wsclient.services.ReviewQuery.getReviewType()
since 2.9 |
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 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.wsclient.services.Measure.getRulePriority()
since 2.5 use Measure.getRuleSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829 |
org.sonar.jpa.dao.RulesDao.getRulesByPlugin(String)
since 2.5 use RulesDao.getRulesByRepository(String) instead. |
org.sonar.api.rules.Rule.getRulesCategory()
since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 |
org.sonar.api.database.model.MeasureModel.getRulesCategoryId()
since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 |
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.DefaultProjectFileSystem.getSourceFiles(Language...)
in 2.6, use DefaultProjectFileSystem.mainFiles(String...) instead |
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.resources.DefaultProjectFileSystem.getTestFiles(Language...)
in 2.6, use DefaultProjectFileSystem.testFiles(String...) instead |
org.sonar.wsclient.services.Review.getType()
since 2.9. |
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.resources.DefaultProjectFileSystem.hasTestFiles(Language)
in 2.6 |
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.utils.KeyValueFormat.parse(String, KeyValueFormat.Transformer)
since 2.7 |
org.sonar.channel.CodeReader.peekTo(EndMatcher)
in 2.2, use CodeReader.peekTo(EndMatcher matcher, Appendable appendable) instead |
org.sonar.channel.CodeReader.popTo(EndMatcher, Appendable)
in 2.2, use CodeReader.popTo(Matcher matcher, Appendable appendable) instead |
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.channel.CodeReaderConfiguration.setBufferCapacity(int)
in 2.12, do not use anymore. |
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.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.database.model.RuleFailureModel.setLevel(RulePriority)
since 2.7. Replace by setPriority() |
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.wsclient.services.ReviewQuery.setReviewType(String)
since 2.9 |
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 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.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.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.Rule.setRulesCategory(RulesCategory)
since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 |
org.sonar.api.database.model.MeasureModel.setRulesCategoryId(Integer)
since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 |
org.sonar.api.rules.ActiveRule.setRulesProfile(RulesProfile)
visibility should be reduced to protected or package |
org.sonar.wsclient.services.Review.setType(String)
since 2.9. |
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.batch.Batch(Configuration, Object...)
since 2.9 because commons-configuration is replaced by ProjectDefinition#properties. Used by Ant Task 1.1 |
org.sonar.channel.ChannelDispatcher(Channel...)
in version 2.9. Please use the builder() method |
org.sonar.channel.ChannelDispatcher(List)
in version 2.9. Please use the builder() method |
org.sonar.channel.ChannelDispatcher(List, boolean)
in version 2.9. Please use the builder() method |
org.sonar.squid.api.CheckMessage(CodeCheck, String, Object...)
replaced by the other constructor since 2.12. See SONAR-2875. |
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.colorizer.MultilinesDocTokenizer(String, String, String)
endToken is hardcoded to star-slash, whatever the startToken ! |
org.sonar.squid.indexer.QueryByMeasure(Metric, QueryByMeasure.Operator, double)
use QueryByMeasure.QueryByMeasure(MetricDef, Operator, double) instead |
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. |