1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2014-08-11 20:17:08 -07:00
parent de6b33924c
commit 4dd9a12177

View file

@ -59,7 +59,7 @@ public class IndexToASTNameHelper {
}
private static boolean isUnnamedName(IASTName name) {
return name.getFileLocation() == null && "".equals(name.toString()); //$NON-NLS-1$
return name.getFileLocation() == null && name.toCharArray().length == 0;
}
private static boolean isQualifiedName(IASTName name) {
@ -114,7 +114,7 @@ class IndexNameToAstNameMatcher extends ASTVisitor {
}
class BindingToAstNameMatcher extends ASTVisitor {
private List<IASTName> results = new ArrayList<IASTName>();
private List<IASTName> results = new ArrayList<>();
private IBinding bindingToFind;
private char[] toFindName;
private IIndex index;