From cf3f7267a374232d6d5c3aec08682a3140eae75f Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 11 Apr 2011 20:13:24 +0200 Subject: [PATCH] IDEA-67776 Off by one error in 'Method with too many parameters' for Groovy --- .../metrics/GroovyMethodParameterCountInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/metrics/GroovyMethodParameterCountInspection.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/metrics/GroovyMethodParameterCountInspection.java index 15fd9f3fc2f9..d58e432818a8 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/metrics/GroovyMethodParameterCountInspection.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInspection/metrics/GroovyMethodParameterCountInspection.java @@ -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)) {