mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Removed unnecessary lists.
This commit is contained in:
parent
e2aba75dbb
commit
f9dae150ff
3 changed files with 3 additions and 5 deletions
|
@ -10,7 +10,6 @@
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.parser;
|
package org.eclipse.cdt.internal.core.parser;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.Hashtable;
|
import java.util.Hashtable;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -325,7 +324,7 @@ public class DeclarationWrapper implements IDeclaratorOwner
|
||||||
}
|
}
|
||||||
public Iterator getDeclarators()
|
public Iterator getDeclarators()
|
||||||
{
|
{
|
||||||
return Collections.unmodifiableList(declarators).iterator();
|
return declarators.iterator();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @return
|
* @return
|
||||||
|
|
|
@ -127,7 +127,7 @@ public class Declarator implements IParameterCollection, IDeclaratorOwner, IDecl
|
||||||
*/
|
*/
|
||||||
public List getPointerOperators()
|
public List getPointerOperators()
|
||||||
{
|
{
|
||||||
return Collections.unmodifiableList( ptrOps );
|
return ptrOps;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addPointerOperator( ASTPointerOperator ptrOp )
|
public void addPointerOperator( ASTPointerOperator ptrOp )
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
package org.eclipse.cdt.internal.core.parser.ast.quick;
|
package org.eclipse.cdt.internal.core.parser.ast.quick;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -100,7 +99,7 @@ public class ASTEnumerationSpecifier extends ASTScopedTypeSpecifier
|
||||||
*/
|
*/
|
||||||
public Iterator getEnumerators()
|
public Iterator getEnumerators()
|
||||||
{
|
{
|
||||||
return Collections.unmodifiableList( enumerators ).iterator();
|
return enumerators.iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addEnumerator(IASTEnumerator enumerator)
|
public void addEnumerator(IASTEnumerator enumerator)
|
||||||
|
|
Loading…
Add table
Reference in a new issue