Package org.sonar.java.checks
Class NullReturnedOnComputeIfPresentOrAbsentCheck
java.lang.Object
org.sonar.java.ast.visitors.SubscriptionVisitor
org.sonar.plugins.java.api.IssuableSubscriptionVisitor
org.sonar.java.checks.methods.AbstractMethodDetection
org.sonar.java.checks.NullReturnedOnComputeIfPresentOrAbsentCheck
- All Implemented Interfaces:
JavaCheck,JavaFileScanner
-
Field Summary
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MethodMatchersThe method is overridden for optimisation by restricting node visits to method invocations.voidonMethodInvocationFound(MethodInvocationTree invocation) Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
onConstructorFound, onMethodReferenceFound, visitNodeMethods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, leaveFile, reportIssue, reportIssue, reportIssue, scanFile, scanTree, setContextMethods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
leaveNode, visitToken, visitTriviaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.java.api.JavaFileScanner
scanWithoutParsing
-
Constructor Details
-
NullReturnedOnComputeIfPresentOrAbsentCheck
public NullReturnedOnComputeIfPresentOrAbsentCheck()
-
-
Method Details
-
nodesToVisit
The method is overridden for optimisation by restricting node visits to method invocations.- Overrides:
nodesToVisitin classAbstractMethodDetection
-
getMethodInvocationMatchers
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
onMethodInvocationFound
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-