Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help
SEARCH

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Methods
  • Enum Constants
  • Terminally Deprecated Elements
    Element
    Description
    org.sonar.plugins.java.api.tree.MethodInvocationTree.symbol()
    in favor of MethodInvocationTree.methodSymbol(), which returns the narrower type Symbol.MethodSymbol instead of Symbol.
    org.sonar.plugins.java.api.tree.NewClassTree.constructorSymbol()
    in favor of NewClassTree.methodSymbol(), which returns the narrower type Symbol.MethodSymbol instead of Symbol.
    org.sonar.plugins.java.api.tree.SyntaxToken.column()
    for removal, since = 7.3, "column()" can be replaced by range().start().columnOffset() and "column() + 1" can be replaced by range().start().column()
    org.sonar.plugins.java.api.tree.SyntaxToken.line()
    for removal, since = 7.3, use "range().start().line()". A token is not anymore on a single line since the text block feature has been introduced in the java language.
    org.sonar.plugins.java.api.tree.SyntaxTrivia.column()
    for removal, since = 7.3, "column()" can be replaced by range().start().columnOffset() and "column() + 1" can be replaced by range().start().column()
    org.sonar.plugins.java.api.tree.SyntaxTrivia.startLine()
    for removal, since = 7.3, use range().start().line()
  • Deprecated Interfaces
    Interface
    Description
    org.sonar.plugins.java.api.tree.DefaultPatternTree
    Preview Feature
    org.sonar.plugins.java.api.tree.GuardedPatternTree
    Preview Feature
    org.sonar.plugins.java.api.tree.NullPatternTree
    Preview Feature
    org.sonar.plugins.java.api.tree.PatternTree
    Preview Feature
    org.sonar.plugins.java.api.tree.TypePatternTree
    Preview Feature
  • Deprecated Methods
    Method
    Description
    org.sonar.plugins.java.api.ModuleScannerContext.getWorkingDirectory()
    use ModuleScannerContext.getRootProjectWorkingDirectory() instead
    org.sonar.plugins.java.api.tree.MethodInvocationTree.symbol()
    in favor of MethodInvocationTree.methodSymbol(), which returns the narrower type Symbol.MethodSymbol instead of Symbol.
    org.sonar.plugins.java.api.tree.NewClassTree.constructorSymbol()
    in favor of NewClassTree.methodSymbol(), which returns the narrower type Symbol.MethodSymbol instead of Symbol.
    org.sonar.plugins.java.api.tree.SyntaxToken.column()
    for removal, since = 7.3, "column()" can be replaced by range().start().columnOffset() and "column() + 1" can be replaced by range().start().column()
    org.sonar.plugins.java.api.tree.SyntaxToken.line()
    for removal, since = 7.3, use "range().start().line()". A token is not anymore on a single line since the text block feature has been introduced in the java language.
    org.sonar.plugins.java.api.tree.SyntaxTrivia.column()
    for removal, since = 7.3, "column()" can be replaced by range().start().columnOffset() and "column() + 1" can be replaced by range().start().column()
    org.sonar.plugins.java.api.tree.SyntaxTrivia.startLine()
    for removal, since = 7.3, use range().start().line()
    org.sonar.plugins.java.api.tree.TreeVisitor.visitDefaultPattern(DefaultPatternTree)
    Preview Feature
    org.sonar.plugins.java.api.tree.TreeVisitor.visitGuardedPattern(GuardedPatternTree)
    Preview Feature
    org.sonar.plugins.java.api.tree.TreeVisitor.visitNullPattern(NullPatternTree)
    Preview Feature
    org.sonar.plugins.java.api.tree.TreeVisitor.visitTypePattern(TypePatternTree)
    Preview Feature
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.sonar.plugins.java.api.tree.Tree.Kind.DEFAULT_PATTERN
    Preview Feature
    org.sonar.plugins.java.api.tree.Tree.Kind.GUARDED_PATTERN
    Preview Feature
    org.sonar.plugins.java.api.tree.Tree.Kind.NULL_PATTERN
    Preview Feature
    org.sonar.plugins.java.api.tree.Tree.Kind.TYPE_PATTERN
    Preview Feature

Copyright © 2012–2023 SonarSource. All rights reserved.