Class KnownCapacityHashBasedCollectionCheck
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.KnownCapacityHashBasedCollectionCheck
- All Implemented Interfaces:
JavaCheck, JavaFileScanner, JavaVersionAwareVisitor
public class KnownCapacityHashBasedCollectionCheck
extends AbstractMethodDetection
implements JavaVersionAwareVisitor
-
Field Summary
Fields inherited from class SubscriptionVisitor
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MethodMatchersbooleanisCompatibleWithJavaVersion(JavaVersion version) protected voidonConstructorFound(NewClassTree newClassTree) Methods inherited from class AbstractMethodDetection
onMethodInvocationFound, onMethodReferenceFound, visitNodeMethods inherited from class IssuableSubscriptionVisitor
addIssue, addIssueOnFile, leaveFile, reportIssue, reportIssue, reportIssue, reportIssue, scanFile, scanTree, setContextMethods inherited from class SubscriptionVisitor
leaveNode, visitToken, visitTriviaMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JavaFileScanner
scanWithoutParsing
-
Constructor Details
-
KnownCapacityHashBasedCollectionCheck
public KnownCapacityHashBasedCollectionCheck()
-
-
Method Details
-
nodesToVisit
- Overrides:
nodesToVisitin classAbstractMethodDetection
-
onConstructorFound
- Overrides:
onConstructorFoundin classAbstractMethodDetection
-
getMethodInvocationMatchers
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
isCompatibleWithJavaVersion
- Specified by:
isCompatibleWithJavaVersionin interfaceJavaVersionAwareVisitor
-