private void checkFormatCall(JavaContext context, MethodInvocation node) { lombok.ast.Node current = getParentMethod(node); if (current != null) { checkStringFormatCall(context, current, node); } }
Node method = StringFormatDetector.getParentMethod(node); if (method != null) { Node method = StringFormatDetector.getParentMethod(node); if (method != null) { SetIconFinder finder = new SetIconFinder();
@Override public void visitMethod(@NonNull JavaContext context, @Nullable AstVisitor visitor, @NonNull MethodInvocation node) { // Call is only allowed if it is both only called on the super class (invoke special) // as well as within the same overriding method (e.g. you can't call super.onLayout // from the onMeasure method) Expression operand = node.astOperand(); if (!(operand instanceof Super)) { report(context, node); return; } Node method = StringFormatDetector.getParentMethod(node); if (!(method instanceof MethodDeclaration) || !((MethodDeclaration)method).astMethodName().astValue().equals( node.astName().astValue())) { report(context, node); } }
lombok.ast.Node method = StringFormatDetector.getParentMethod(call); if (method != null) {