Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-01-08 01:20:20 +0000
committerSergey Prigogin2012-01-08 01:20:20 +0000
commit1e014bba19de2ceda95893707cf3aa53a9f1eb54 (patch)
tree6e4b9ad883b94f407f8a8f71f1ab5f48b35d8f4c /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTNamespaceDefinition.java
parent28699d05bb686f9198ec307c128d13178ddea409 (diff)
downloadorg.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.java4
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();

Back to the top