mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-03-28 14:56:28 +01:00
Bug 567966 - CDT code clean up: type safety warnings
Use List<IProject> instead of raw List Use HashSet<IProject> instead of raw HashSet Change-Id: I583daad225f828345d7109dba582ad5507431d65 Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
This commit is contained in:
parent
aca757df28
commit
219526880f
1 changed files with 6 additions and 6 deletions
|
@ -155,7 +155,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
|||
/**
|
||||
* A list of prequisite projects ordered by their build order.
|
||||
*/
|
||||
private List orderedProjects;
|
||||
private List<IProject> orderedProjects;
|
||||
private String preLaunchBuildConfiguration;
|
||||
|
||||
/**
|
||||
|
@ -481,7 +481,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
|||
* if an error occurs while getting referenced projects from the
|
||||
* current project
|
||||
*/
|
||||
private void getReferencedProjectSet(IProject proj, HashSet referencedProjSet) throws CoreException {
|
||||
private void getReferencedProjectSet(IProject proj, HashSet<IProject> referencedProjSet) throws CoreException {
|
||||
IProject[] projects = proj.getReferencedProjects();
|
||||
for (int i = 0; i < projects.length; i++) {
|
||||
IProject refProject = projects[i];
|
||||
|
@ -585,8 +585,8 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
|||
monitor.beginTask(LaunchMessages.AbstractCLaunchDelegate_building_projects, totalWork);
|
||||
|
||||
try {
|
||||
for (Iterator i = orderedProjects.iterator(); i.hasNext();) {
|
||||
IProject proj = (IProject) i.next();
|
||||
for (Iterator<IProject> i = orderedProjects.iterator(); i.hasNext();) {
|
||||
IProject proj = i.next();
|
||||
monitor.subTask(LaunchMessages.AbstractCLaunchDelegate_building + proj.getName());
|
||||
proj.build(IncrementalProjectBuilder.INCREMENTAL_BUILD,
|
||||
new LaunchUtils.BuildProgressMonitor(monitor, scale));
|
||||
|
@ -708,8 +708,8 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
|||
|
||||
//check prerequisite projects for compile errors.
|
||||
if (!compileErrorsInProjs) {
|
||||
for (Iterator i = orderedProjects.iterator(); i.hasNext();) {
|
||||
IProject proj = (IProject) i.next();
|
||||
for (Iterator<IProject> i = orderedProjects.iterator(); i.hasNext();) {
|
||||
IProject proj = i.next();
|
||||
monitor.subTask(LaunchMessages.AbstractCLaunchDelegate_searching_for_errors_in + proj.getName());
|
||||
monitor.worked(scale);
|
||||
compileErrorsInProjs = existsErrors(proj);
|
||||
|
|
Loading…
Add table
Reference in a new issue