Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'util/org.eclipse.cdt.util')
-rw-r--r--util/org.eclipse.cdt.util/src/org/eclipse/cdt/internal/core/parser/util/DOMSearchUtil.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/org.eclipse.cdt.util/src/org/eclipse/cdt/internal/core/parser/util/DOMSearchUtil.java b/util/org.eclipse.cdt.util/src/org/eclipse/cdt/internal/core/parser/util/DOMSearchUtil.java
index 35675f81669..dcd934e42a2 100644
--- a/util/org.eclipse.cdt.util/src/org/eclipse/cdt/internal/core/parser/util/DOMSearchUtil.java
+++ b/util/org.eclipse.cdt.util/src/org/eclipse/cdt/internal/core/parser/util/DOMSearchUtil.java
@@ -69,16 +69,16 @@ public class DOMSearchUtil {
{
shouldVisitNames = true;
}
- public List<IASTName> nameList = new ArrayList<IASTName>();
+ public List<IASTName> nameList = new ArrayList<>();
@Override
public int visit(IASTName name) {
- nameList.add( name );
+ nameList.add(name);
return PROCESS_CONTINUE;
}
- public IASTName getName( int idx ){
- if( idx < 0 || idx >= nameList.size() )
+ public IASTName getName(int idx) {
+ if (idx < 0 || idx >= nameList.size())
return null;
return nameList.get(idx);
}

Back to the top