category = ONE_OFF, maturity = EXPERIMENTAL, severity = ERROR, summary = "")
private static class SuperCallMatcher extends BugChecker implements MethodInvocationTreeMatcher {
@Override
public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {
Tree select = tree.getMethodSelect();
Name name;
if (select instanceof MemberSelectTree) {
name = ((MemberSelectTree) select).getIdentifier();
} else if (select instanceof IdentifierTree) {
name = ((IdentifierTree) select).getName();
} else {
return Description.NO_MATCH;
}
return name.contentEquals("super")
? describeMatch(tree)
: Description.NO_MATCH;
}