Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java b/bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java
index bd276c160..344b94a3b 100644
--- a/bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java
+++ b/bundles/org.eclipse.equinox.p2.publisher/src_ant/org/eclipse/equinox/internal/p2/publisher/ant/FeaturesAndBundlesPublisherTask.java
@@ -21,8 +21,8 @@ import org.eclipse.equinox.p2.publisher.eclipse.BundlesAction;
import org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction;
public class FeaturesAndBundlesPublisherTask extends AbstractPublishTask {
- private ArrayList features = new ArrayList();
- private ArrayList bundles = new ArrayList();
+ private ArrayList<Object> features = new ArrayList<Object>();
+ private ArrayList<Object> bundles = new ArrayList<Object>();
public void execute() throws BuildException {
try {
@@ -34,19 +34,19 @@ public class FeaturesAndBundlesPublisherTask extends AbstractPublishTask {
File[] f = getLocations(features);
File[] b = getLocations(bundles);
- ArrayList actions = new ArrayList();
+ ArrayList<IPublisherAction> actions = new ArrayList<IPublisherAction>();
if (f.length > 0)
actions.add(new FeaturesAction(f));
if (b.length > 0)
actions.add(new BundlesAction(b));
if (actions.size() > 0)
- new Publisher(getInfo()).publish((IPublisherAction[]) actions.toArray(new IPublisherAction[actions.size()]), new NullProgressMonitor());
+ new Publisher(getInfo()).publish(actions.toArray(new IPublisherAction[actions.size()]), new NullProgressMonitor());
}
- private File[] getLocations(List collection) {
- ArrayList results = new ArrayList();
- for (Iterator iterator = collection.iterator(); iterator.hasNext();) {
+ private File[] getLocations(List<Object> collection) {
+ ArrayList<Object> results = new ArrayList<Object>();
+ for (Iterator<Object> iterator = collection.iterator(); iterator.hasNext();) {
Object obj = iterator.next();
if (obj instanceof FileSet) {
FileSet set = (FileSet) obj;
@@ -62,7 +62,7 @@ public class FeaturesAndBundlesPublisherTask extends AbstractPublishTask {
results.add(obj);
}
}
- return (File[]) results.toArray(new File[results.size()]);
+ return results.toArray(new File[results.size()]);
}
public FileSet createFeatures() {

Back to the top