Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Ferguson2008-01-15 06:40:08 -0500
committerAndrew Ferguson2008-01-15 06:40:08 -0500
commit100ce28bcda9580c9f1f9f0a18b3244fb1be863a (patch)
treefb174c6c72eb9f8e274f54a6aaeb81e635d60d90 /core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes
parentc18ff521d9d51731971360251fa77f5f70524fe2 (diff)
downloadorg.eclipse.cdt-100ce28bcda9580c9f1f9f0a18b3244fb1be863a.tar.gz
org.eclipse.cdt-100ce28bcda9580c9f1f9f0a18b3244fb1be863a.tar.xz
org.eclipse.cdt-100ce28bcda9580c9f1f9f0a18b3244fb1be863a.zip
Apply patch for 215823 for Mark Espiritu, and fix generics warnings in template engine
Diffstat (limited to 'core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes')
-rw-r--r--core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java b/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java
index 102646ceed..54cccb9831 100644
--- a/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java
+++ b/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 Symbian Software Limited and others.
+ * Copyright (c) 2007, 2008 Symbian Software Limited and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -104,14 +104,14 @@ public class CreateSourceFolder extends ProcessRunner {
for(int i=0; i < configs.length; i++){
ICConfigurationDescription config = configs[i];
ICSourceEntry[] entries = config.getSourceEntries();
- Set set = new HashSet();
+ Set<ICSourceEntry> set = new HashSet<ICSourceEntry>();
for (int j=0; j < entries.length; j++) {
if(new Path(entries[j].getValue()).segmentCount() == 1)
continue;
set.add(entries[j]);
}
set.add(newEntry);
- config.setSourceEntries((ICSourceEntry[])set.toArray(new ICSourceEntry[set.size()]));
+ config.setSourceEntries(set.toArray(new ICSourceEntry[set.size()]));
}
CCorePlugin.getDefault().setProjectDescription(projectHandle, description, false, monitor);
@@ -126,7 +126,7 @@ public class CreateSourceFolder extends ProcessRunner {
*/
private void createFolder(String targetPath, IProgressMonitor monitor, IPath projPath, ICProject cProject) throws CModelException {
IPathEntry[] entries = cProject.getRawPathEntries();
- List/*<IPathEntry>*/ newEntries = new ArrayList/*<IPathEntry>*/(entries.length + 1);
+ List<IPathEntry> newEntries = new ArrayList<IPathEntry>(entries.length + 1);
int projectEntryIndex= -1;
IPath path = projPath.append(targetPath);
@@ -151,7 +151,7 @@ public class CreateSourceFolder extends ProcessRunner {
newEntries.add(CoreModel.newSourceEntry(path));
}
- cProject.setRawPathEntries((IPathEntry[])newEntries.toArray(new IPathEntry[newEntries.size()]), monitor);
+ cProject.setRawPathEntries(newEntries.toArray(new IPathEntry[newEntries.size()]), monitor);
}
}

Back to the top