From 377ce07a38b42d52f90b0b9f6b87bef2df07b8ef Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 13 Jun 2017 12:17:25 +0300 Subject: [PATCH] [devkit] fixes unsafe VFS recursion inspection (unhandled case tracked in IDEA-173833) --- .../src/inspections/internal/UnsafeVfsRecursionInspection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/devkit/src/inspections/internal/UnsafeVfsRecursionInspection.java b/plugins/devkit/src/inspections/internal/UnsafeVfsRecursionInspection.java index ad9b0ce5f82a..067370ced894 100644 --- a/plugins/devkit/src/inspections/internal/UnsafeVfsRecursionInspection.java +++ b/plugins/devkit/src/inspections/internal/UnsafeVfsRecursionInspection.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,6 +60,7 @@ public class UnsafeVfsRecursionInspection extends DevKitInspectionBase { containingMethod.accept(new JavaRecursiveElementVisitor() { @Override public void visitMethodCallExpression(final PsiMethodCallExpression expression2) { + super.visitMethodCallExpression(expression2); if (expression2 != expression && containingMethodName.equals(expression2.getMethodExpression().getReferenceName()) && expression2.resolveMethod() == containingMethod) {