diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java index 30330751dcf..27cd20b1635 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/core/search/BasicSearchMatch.java @@ -49,6 +49,7 @@ public class BasicSearchMatch implements IMatch, Comparable { public BasicSearchMatch() { + //Create empty BasicSearchMatch } final static private String HASH_SEPERATOR = ":"; //$NON-NLS-1$ diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java index 6ac6a920e66..c289105e0c3 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java @@ -216,7 +216,7 @@ public class MethodDeclarationPattern extends CSearchPattern { } if (returnTypeExists){ - this.returnTypes = missmatch[returnStart + 1].toCharArray(); + this.decodedReturnTypes = missmatch[returnStart + 1].toCharArray(); } } @@ -249,12 +249,12 @@ public class MethodDeclarationPattern extends CSearchPattern { * @param decodedReturnTypes * @return */ - private boolean matchReturnType(char[] returnTypes, char[] decodedReturnTypes) { - if( returnTypes == null || decodedReturnTypes == null ){ + private boolean matchReturnType(char[] tempReturnTypes, char[] tempDecodedReturnTypes) { + if( tempReturnTypes == null || tempDecodedReturnTypes == null ){ return true; //treat null as "*" } - return CharOperation.equals( returnTypes, decodedReturnTypes, true); + return CharOperation.equals( tempReturnTypes, tempDecodedReturnTypes, true); } private boolean matchParameters(char[][] parameterNames2, char[][] decodedParameters2) { @@ -291,7 +291,7 @@ public class MethodDeclarationPattern extends CSearchPattern { for (int j=0; j 0){ + String[] parms = new String[decodedParameters.length]; + for (int k=0; k