diff options
author | Sergey Prigogin | 2012-01-08 01:20:20 +0000 |
---|---|---|
committer | Sergey Prigogin | 2012-01-08 01:20:20 +0000 |
commit | 1e014bba19de2ceda95893707cf3aa53a9f1eb54 (patch) | |
tree | 6e4b9ad883b94f407f8a8f71f1ab5f48b35d8f4c /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java | |
parent | 28699d05bb686f9198ec307c128d13178ddea409 (diff) | |
download | org.eclipse.cdt-1e014bba19de2ceda95893707cf3aa53a9f1eb54.tar.gz org.eclipse.cdt-1e014bba19de2ceda95893707cf3aa53a9f1eb54.tar.xz org.eclipse.cdt-1e014bba19de2ceda95893707cf3aa53a9f1eb54.zip |
All methods of ArrayUtil are now type-safe.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java index e807f62daa3..313befcca06 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java @@ -85,7 +85,7 @@ public class CPPASTNamespaceDefinition extends ASTNode if (decl != null) { decl.setParent(this); decl.setPropertyInParent(OWNED_DECLARATION); - fAllDeclarations = (IASTDeclaration[]) ArrayUtil.append(IASTDeclaration.class, fAllDeclarations, ++fLastDeclaration, decl); + fAllDeclarations = (IASTDeclaration[]) ArrayUtil.appendAt(IASTDeclaration.class, fAllDeclarations, ++fLastDeclaration, decl); fActiveDeclarations= null; } } @@ -101,7 +101,7 @@ public class CPPASTNamespaceDefinition extends ASTNode public final IASTDeclaration[] getDeclarations(boolean includeInactive) { if (includeInactive) { - fAllDeclarations= (IASTDeclaration[]) ArrayUtil.removeNullsAfter(IASTDeclaration.class, fAllDeclarations, fLastDeclaration); + fAllDeclarations= (IASTDeclaration[]) ArrayUtil.trimAt(IASTDeclaration.class, fAllDeclarations, fLastDeclaration); return fAllDeclarations; } return getDeclarations(); |