1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 319512: Compilation warnings

This commit is contained in:
Andrew Gvozdev 2010-07-27 20:32:05 +00:00
parent 223d219a8f
commit 9e4a9af1d9

View file

@ -11,20 +11,19 @@
package org.eclipse.cdt.managedbuilder.internal.buildmodel; package org.eclipse.cdt.managedbuilder.internal.buildmodel;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator;
import java.util.Set; import java.util.Set;
import org.eclipse.cdt.managedbuilder.buildmodel.IBuildStep; import org.eclipse.cdt.managedbuilder.buildmodel.IBuildStep;
public class BuildGroup { public class BuildGroup {
private Set fActions = new HashSet(); private Set<BuildStep> fActions = new HashSet<BuildStep>();
private boolean fNeedsRebuild; private boolean fNeedsRebuild;
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.builddescription.IBuildGroup#getSteps() * @see org.eclipse.cdt.managedbuilder.builddescription.IBuildGroup#getSteps()
*/ */
public IBuildStep[] getSteps() { public IBuildStep[] getSteps() {
return (IBuildStep[])fActions.toArray(new IBuildStep[fActions.size()]); return fActions.toArray(new IBuildStep[fActions.size()]);
} }
public void addAction(BuildStep action){ public void addAction(BuildStep action){
@ -48,9 +47,7 @@ public class BuildGroup {
public void setRebuildState(boolean rebuild){ public void setRebuildState(boolean rebuild){
fNeedsRebuild = rebuild; fNeedsRebuild = rebuild;
for(Iterator iter = fActions.iterator(); iter.hasNext();){ for (BuildStep action : fActions) {
BuildStep action = (BuildStep)iter.next();
action.setRebuildState(rebuild); action.setRebuildState(rebuild);
} }
} }