JavaVersionAwareVisitor, JavaCheck, JavaFileScannerpublic class MapComputeIfAbsentOrPresentCheck extends SECheck implements JavaVersionAwareVisitor
SECheck.SEIssue| Constructor | Description |
|---|---|
MapComputeIfAbsentOrPresentCheck() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkEndOfExecution(CheckerContext context) |
|
ProgramState |
checkPostStatement(CheckerContext context,
Tree syntaxNode) |
|
ProgramState |
checkPreStatement(CheckerContext context,
Tree syntaxNode) |
|
void |
init(MethodTree methodTree,
CFG cfg) |
|
boolean |
isCompatibleWithJavaVersion(JavaVersion version) |
Control if the check is compatible with the java version of the project being analyzed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckEndOfExecutionPath, interruptedExecution, reportIssue, reportIssue, scanFilepublic boolean isCompatibleWithJavaVersion(JavaVersion version)
JavaVersionAwareVisitorsonar.java.source (6 or 1.6 for java 1.6, 7 or 1.7, etc.).isCompatibleWithJavaVersion in interface JavaVersionAwareVisitorversion - The java version of the sourcespublic void init(MethodTree methodTree, CFG cfg)
public ProgramState checkPostStatement(CheckerContext context, Tree syntaxNode)
checkPostStatement in class SECheckpublic ProgramState checkPreStatement(CheckerContext context, Tree syntaxNode)
checkPreStatement in class SECheckpublic void checkEndOfExecution(CheckerContext context)
checkEndOfExecution in class SECheckCopyright © 2012–2018 SonarSource. All rights reserved.