Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2014-08-12 03:17:08 +0000
committerSergey Prigogin2014-08-12 03:17:08 +0000
commit4dd9a12177937e985a74b4311ee00e928a27fbdc (patch)
treeffe011f150b0eeb158cb6eed6ceb6f34381afdf8
parentde6b33924c249c0db1187ffa88f92eb22b9ffde8 (diff)
downloadorg.eclipse.cdt-4dd9a12177937e985a74b4311ee00e928a27fbdc.tar.gz
org.eclipse.cdt-4dd9a12177937e985a74b4311ee00e928a27fbdc.tar.xz
org.eclipse.cdt-4dd9a12177937e985a74b4311ee00e928a27fbdc.zip
Cosmetics.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/IndexToASTNameHelper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/IndexToASTNameHelper.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/IndexToASTNameHelper.java
index 4cdc4fae9f6..f0b2bc36201 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/IndexToASTNameHelper.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/IndexToASTNameHelper.java
@@ -6,7 +6,7 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
- * Contributors:
+ * Contributors:
* Institute for Software - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.internal.ui.refactoring;
@@ -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;

Back to the top