From c79af2ee01d3f2093b2668c0a663bf8f76d7429f Mon Sep 17 00:00:00 2001 From: Frederic Fusier Date: Tue, 1 Mar 2005 17:27:49 +0000 Subject: 86901 --- .../jdt/internal/core/search/matching/ConstructorLocator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java') diff --git a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java index 12d80696ca..431b63cd62 100644 --- a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java +++ b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java @@ -35,7 +35,7 @@ public int match(ASTNode node, MatchingNodeSet nodeSet) { // interested in Expli if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!(node instanceof ExplicitConstructorCall)) return IMPOSSIBLE_MATCH; - if (this.pattern.parameterSimpleNames != null && !this.pattern.varargs) { + if (this.pattern.parameterSimpleNames != null && this.pattern.shouldCountParameter()) { int length = this.pattern.parameterSimpleNames.length; Expression[] args = ((ExplicitConstructorCall) node).arguments; int argsLength = args == null ? 0 : args.length; @@ -60,7 +60,7 @@ public int match(Expression node, MatchingNodeSet nodeSet) { // interested in Al if (this.pattern.declaringSimpleName != null && !matchesName(this.pattern.declaringSimpleName, typeName[typeName.length-1])) return IMPOSSIBLE_MATCH; - if (this.pattern.parameterSimpleNames != null && !this.pattern.varargs) { + if (this.pattern.parameterSimpleNames != null && this.pattern.shouldCountParameter()) { int length = this.pattern.parameterSimpleNames.length; Expression[] args = allocation.arguments; int argsLength = args == null ? 0 : args.length; @@ -80,7 +80,7 @@ public int match(FieldDeclaration field, MatchingNodeSet nodeSet) { return IMPOSSIBLE_MATCH; } - if (this.pattern.parameterSimpleNames != null && !this.pattern.varargs) { + if (this.pattern.parameterSimpleNames != null && this.pattern.shouldCountParameter()) { int length = this.pattern.parameterSimpleNames.length; Expression[] args = allocation.arguments; int argsLength = args == null ? 0 : args.length; -- cgit v1.2.3