mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix SuppressLocalInspectionInJspTest
This commit is contained in:
+3
-1
@@ -221,7 +221,9 @@ public class LocalCanBeFinal extends BaseJavaBatchLocalInspectionTool {
|
||||
|
||||
if (body.getParent() instanceof PsiMethod && isReportParameters()) {
|
||||
final PsiMethod method = (PsiMethod)body.getParent();
|
||||
Collections.addAll(result, method.getParameterList().getParameters());
|
||||
if (!(method instanceof SyntheticElement)) { // e.g. JspHolderMethod
|
||||
Collections.addAll(result, method.getParameterList().getParameters());
|
||||
}
|
||||
}
|
||||
|
||||
for (Iterator<PsiVariable> iterator = result.iterator(); iterator.hasNext(); ) {
|
||||
|
||||
Reference in New Issue
Block a user