mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02: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.
|
* A list of prequisite projects ordered by their build order.
|
||||||
*/
|
*/
|
||||||
private List orderedProjects;
|
private List<IProject> orderedProjects;
|
||||||
private String preLaunchBuildConfiguration;
|
private String preLaunchBuildConfiguration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -481,7 +481,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
||||||
* if an error occurs while getting referenced projects from the
|
* if an error occurs while getting referenced projects from the
|
||||||
* current project
|
* 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();
|
IProject[] projects = proj.getReferencedProjects();
|
||||||
for (int i = 0; i < projects.length; i++) {
|
for (int i = 0; i < projects.length; i++) {
|
||||||
IProject refProject = projects[i];
|
IProject refProject = projects[i];
|
||||||
|
@ -585,8 +585,8 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
||||||
monitor.beginTask(LaunchMessages.AbstractCLaunchDelegate_building_projects, totalWork);
|
monitor.beginTask(LaunchMessages.AbstractCLaunchDelegate_building_projects, totalWork);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (Iterator i = orderedProjects.iterator(); i.hasNext();) {
|
for (Iterator<IProject> i = orderedProjects.iterator(); i.hasNext();) {
|
||||||
IProject proj = (IProject) i.next();
|
IProject proj = i.next();
|
||||||
monitor.subTask(LaunchMessages.AbstractCLaunchDelegate_building + proj.getName());
|
monitor.subTask(LaunchMessages.AbstractCLaunchDelegate_building + proj.getName());
|
||||||
proj.build(IncrementalProjectBuilder.INCREMENTAL_BUILD,
|
proj.build(IncrementalProjectBuilder.INCREMENTAL_BUILD,
|
||||||
new LaunchUtils.BuildProgressMonitor(monitor, scale));
|
new LaunchUtils.BuildProgressMonitor(monitor, scale));
|
||||||
|
@ -708,8 +708,8 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
||||||
|
|
||||||
//check prerequisite projects for compile errors.
|
//check prerequisite projects for compile errors.
|
||||||
if (!compileErrorsInProjs) {
|
if (!compileErrorsInProjs) {
|
||||||
for (Iterator i = orderedProjects.iterator(); i.hasNext();) {
|
for (Iterator<IProject> i = orderedProjects.iterator(); i.hasNext();) {
|
||||||
IProject proj = (IProject) i.next();
|
IProject proj = i.next();
|
||||||
monitor.subTask(LaunchMessages.AbstractCLaunchDelegate_searching_for_errors_in + proj.getName());
|
monitor.subTask(LaunchMessages.AbstractCLaunchDelegate_searching_for_errors_in + proj.getName());
|
||||||
monitor.worked(scale);
|
monitor.worked(scale);
|
||||||
compileErrorsInProjs = existsErrors(proj);
|
compileErrorsInProjs = existsErrors(proj);
|
||||||
|
|
Loading…
Add table
Reference in a new issue