diff options
author | Frederic Fusier | 2005-03-01 17:27:49 +0000 |
---|---|---|
committer | Frederic Fusier | 2005-03-01 17:27:49 +0000 |
commit | c79af2ee01d3f2093b2668c0a663bf8f76d7429f (patch) | |
tree | e24284853d3601a0d4698b7ddbf8e0f69d72b215 /org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java | |
parent | c87dd117aac30a89b6ea22519637d9f69471ec0b (diff) | |
download | eclipse.jdt.core-c79af2ee01d3f2093b2668c0a663bf8f76d7429f.tar.gz eclipse.jdt.core-c79af2ee01d3f2093b2668c0a663bf8f76d7429f.tar.xz eclipse.jdt.core-c79af2ee01d3f2093b2668c0a663bf8f76d7429f.zip |
86901
Diffstat (limited to 'org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java')
-rw-r--r-- | org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorLocator.java | 6 |
1 files changed, 3 insertions, 3 deletions
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; |