mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-67776 Off by one error in 'Method with too many parameters' for Groovy
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ public class GroovyMethodParameterCountInspection extends GroovyMethodMetricInsp
|
||||
super.visitMethod(grMethod);
|
||||
final GrParameter[] parameters = grMethod.getParameters();
|
||||
final int limit = getLimit();
|
||||
if (parameters == null || parameters.length < limit) {
|
||||
if (parameters == null || parameters.length <= limit) {
|
||||
return;
|
||||
}
|
||||
if (LibraryUtil.isOverrideOfLibraryMethod(grMethod)) {
|
||||
|
||||
Reference in New Issue
Block a user