Package org.sonar.java.checks
Class ThreadSleepCheck
- 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.AbstractInSynchronizeChecker
-
- org.sonar.java.checks.ThreadSleepCheck
-
- All Implemented Interfaces:
org.sonar.plugins.java.api.JavaCheck,org.sonar.plugins.java.api.JavaFileScanner
public class ThreadSleepCheck extends AbstractInSynchronizeChecker
-
-
Constructor Summary
Constructors Constructor Description ThreadSleepCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.sonar.java.matcher.MethodMatcher>getMethodInvocationMatchers()protected voidonMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit)-
Methods inherited from class org.sonar.java.checks.AbstractInSynchronizeChecker
hasAnyParentSync, isInSyncBlock, leaveFile, leaveNode, nodesToVisit, setContext, visitNode
-
Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
onConstructorFound, onMethodReferenceFound
-
Methods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, scanTree
-
-
-
-
Method Detail
-
onMethodInvocationFound
protected void onMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit)
- Overrides:
onMethodInvocationFoundin classAbstractMethodDetection
-
getMethodInvocationMatchers
protected List<org.sonar.java.matcher.MethodMatcher> getMethodInvocationMatchers()
- Specified by:
getMethodInvocationMatchersin classAbstractMethodDetection
-
-