IDEA-67776 Off by one error in 'Method with too many parameters' for Groovy

This commit is contained in:
peter
2011-04-12 13:18:43 +02:00
parent 50412c37e5
commit cf3f7267a3
@@ -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)) {