Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hallgren2010-02-26 15:09:10 +0000
committerThomas Hallgren2010-02-26 15:09:10 +0000
commite71a591de427fe7be2b7defb34dc3b683c8d6163 (patch)
tree93e78202c73d19ae45ff599a2225bdc3c5ed6809 /bundles/org.eclipse.equinox.p2.ui.admin
parenteaa7cbe6e5818394bc1673a8babc7d4ebd30ed13 (diff)
downloadrt.equinox.p2-e71a591de427fe7be2b7defb34dc3b683c8d6163.tar.gz
rt.equinox.p2-e71a591de427fe7be2b7defb34dc3b683c8d6163.tar.xz
rt.equinox.p2-e71a591de427fe7be2b7defb34dc3b683c8d6163.zip
302193 : Return type inconsistency on IInstallableUnit's getters
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.admin')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/dialogs/IUImplementationGroup.java22
1 files changed, 9 insertions, 13 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/dialogs/IUImplementationGroup.java b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/dialogs/IUImplementationGroup.java
index 9e898e6ee..619fd0af7 100644
--- a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/dialogs/IUImplementationGroup.java
+++ b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/dialogs/IUImplementationGroup.java
@@ -10,19 +10,14 @@
*******************************************************************************/
package org.eclipse.equinox.internal.p2.ui.admin.dialogs;
-import org.eclipse.equinox.p2.metadata.Version;
-
-import org.eclipse.equinox.p2.metadata.*;
-
import java.util.Collection;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.equinox.internal.p2.ui.admin.ProvAdminUIActivator;
import org.eclipse.equinox.internal.p2.ui.admin.ProvAdminUIMessages;
-import org.eclipse.equinox.internal.provisional.p2.metadata.*;
+import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory;
import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory.InstallableUnitDescription;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.metadata.IRequirement;
+import org.eclipse.equinox.p2.metadata.*;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.SWT;
@@ -159,23 +154,24 @@ public class IUImplementationGroup extends IUGroup {
if (type != null) {
touchpointType.setText(type.getId());
}
- java.util.List<ITouchpointData> data = iu.getTouchpointData();
+ Collection<ITouchpointData> data = iu.getTouchpointData();
String[] items = new String[data.size()];
- for (int i = 0; i < data.size(); i++) {
- items[i] = data.get(i).toString();
+ int i = 0;
+ for (ITouchpointData td : data) {
+ items[i++] = td.toString();
}
touchpointData.setItems(items);
Collection<IRequirement> reqs = iu.getRequiredCapabilities();
items = new String[reqs.size()];
- int j = 0;
+ i = 0;
for (IRequirement req : reqs) {
- items[j++] = req.toString();
+ items[i++] = req.toString();
}
requiredCapabilities.setItems(items);
Collection<IProvidedCapability> prov = iu.getProvidedCapabilities();
items = new String[prov.size()];
- int i = 0;
+ i = 0;
for (IProvidedCapability capability : prov) {
items[i++] = capability.toString();
}

Back to the top