org.sonar.plugins.java.api.JavaCheck, org.sonar.plugins.java.api.JavaFileScannerpublic class ObjectCreatedOnlyToCallGetClassCheck extends AbstractMethodDetection
| Constructor | Description |
|---|---|
ObjectCreatedOnlyToCallGetClassCheck() |
| Modifier and Type | Method | Description |
|---|---|---|
protected List<org.sonar.java.matcher.MethodMatcher> |
getMethodInvocationMatchers() |
|
protected void |
onMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit) |
nodesToVisit, onConstructorFound, visitNodeaddIssue, addIssueOnFile, reportIssue, reportIssue, reportIssuepublic ObjectCreatedOnlyToCallGetClassCheck()
protected List<org.sonar.java.matcher.MethodMatcher> getMethodInvocationMatchers()
getMethodInvocationMatchers in class AbstractMethodDetectionprotected void onMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit)
onMethodInvocationFound in class AbstractMethodDetectionCopyright © 2012–2018 SonarSource. All rights reserved.