diff options
author | Thomas Hallgren | 2010-02-26 15:09:10 +0000 |
---|---|---|
committer | Thomas Hallgren | 2010-02-26 15:09:10 +0000 |
commit | e71a591de427fe7be2b7defb34dc3b683c8d6163 (patch) | |
tree | 93e78202c73d19ae45ff599a2225bdc3c5ed6809 /bundles/org.eclipse.equinox.p2.touchpoint.eclipse | |
parent | eaa7cbe6e5818394bc1673a8babc7d4ebd30ed13 (diff) | |
download | rt.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.touchpoint.eclipse')
2 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java index 1628ec605..095fd9f87 100644 --- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java +++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java @@ -296,9 +296,9 @@ public class Util { return null; } - public static String getManifest(List<ITouchpointData> data) { - for (int i = 0; i < data.size(); i++) { - ITouchpointInstruction manifestInstruction = data.get(i).getInstruction("manifest"); //$NON-NLS-1$ + public static String getManifest(Collection<ITouchpointData> data) { + for (ITouchpointData td : data) { + ITouchpointInstruction manifestInstruction = td.getInstruction("manifest"); //$NON-NLS-1$ if (manifestInstruction == null) return null; String manifest = manifestInstruction.getBody(); diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/CollectAction.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/CollectAction.java index e7e7ce43a..fac359050 100644 --- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/CollectAction.java +++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/CollectAction.java @@ -46,11 +46,11 @@ public class CollectAction extends ProvisioningAction { return Status.OK_STATUS; } - public static boolean isZipped(List<ITouchpointData> data) { + public static boolean isZipped(Collection<ITouchpointData> data) { if (data == null || data.size() == 0) return false; - for (int i = 0; i < data.size(); i++) { - if (data.get(i).getInstruction("zipped") != null) //$NON-NLS-1$ + for (ITouchpointData td : data) { + if (td.getInstruction("zipped") != null) //$NON-NLS-1$ return true; } return false; |