Author: rob.stryker(a)jboss.com
Date: 2007-09-20 19:43:34 -0400 (Thu, 20 Sep 2007)
New Revision: 3742
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/ServerSourcePathComputerDelegate.java
Log:
removing compiler warnings (generics)
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/ServerSourcePathComputerDelegate.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/ServerSourcePathComputerDelegate.java 2007-09-20
23:41:49 UTC (rev 3741)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/ServerSourcePathComputerDelegate.java 2007-09-20
23:43:34 UTC (rev 3742)
@@ -39,19 +39,19 @@
public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration,
IProgressMonitor monitor) throws CoreException {
IRuntimeClasspathEntry[] unresolvedEntries =
JavaRuntime.computeUnresolvedSourceLookupPath(configuration);
- List sourcefolderList = new ArrayList();
+ List<FolderSourceContainer> sourcefolderList = new
ArrayList<FolderSourceContainer>();
IServer server = ServerUtil.getServer(configuration);
IModule[] modules = server.getModules();
- List javaProjectList = new ArrayList();
+ List<IJavaProject> javaProjectList = new ArrayList<IJavaProject>();
processModules(sourcefolderList, modules, javaProjectList, server,monitor);
IRuntimeClasspathEntry[] projectEntries = new
IRuntimeClasspathEntry[javaProjectList.size()];
for (int i = 0; i < javaProjectList.size(); i++) {
- projectEntries[i] =
JavaRuntime.newProjectRuntimeClasspathEntry((IJavaProject)javaProjectList.get(i));
+ projectEntries[i] =
JavaRuntime.newProjectRuntimeClasspathEntry(javaProjectList.get(i));
}
IRuntimeClasspathEntry[] entries = new
IRuntimeClasspathEntry[projectEntries.length+unresolvedEntries.length];
System.arraycopy(unresolvedEntries,0,entries,0,unresolvedEntries.length);
@@ -71,7 +71,7 @@
}
- private void processModules(List sourcefolderList, IModule[] modules, List
javaProjectList, IServer server, IProgressMonitor monitor) {
+ private void processModules(List<FolderSourceContainer> sourcefolderList,
IModule[] modules, List<IJavaProject> javaProjectList, IServer server,
IProgressMonitor monitor) {
for (int i = 0; i < modules.length; i++) {
IProject project = modules[i].getProject();
IModule[] pModule = new IModule[1];