Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-01-05 20:24:42 +0000
committerPascal Rapicault2010-01-05 20:24:42 +0000
commit1eb5a49b2d8668a93dc302503ca6fcc3cf83ccdc (patch)
treeb2304bbf429f8776376ab68db7ce83b75de5e57b
parent095a63af67486733d0e937605f4c0651b5fa1e14 (diff)
downloadrt.equinox.p2-1eb5a49b2d8668a93dc302503ca6fcc3cf83ccdc.tar.gz
rt.equinox.p2-1eb5a49b2d8668a93dc302503ca6fcc3cf83ccdc.tar.xz
rt.equinox.p2-1eb5a49b2d8668a93dc302503ca6fcc3cf83ccdc.zip
Bug 298885 - InstallableUnit#getFragments uses 1.5 API
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java2
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/ResolvedInstallableUnit.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java
index c2646a291..59d2c6d4f 100644
--- a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java
+++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java
@@ -103,7 +103,7 @@ public class InstallableUnit implements IInstallableUnit {
}
public List<IInstallableUnitFragment> getFragments() {
- return Collections.emptyList();
+ return CollectionUtils.emptyList();
}
public String getId() {
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/ResolvedInstallableUnit.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/ResolvedInstallableUnit.java
index 96c53dc73..f705473ad 100644
--- a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/ResolvedInstallableUnit.java
+++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/ResolvedInstallableUnit.java
@@ -12,6 +12,7 @@
package org.eclipse.equinox.internal.p2.metadata;
import java.util.*;
+import org.eclipse.equinox.internal.p2.core.helpers.CollectionUtils;
import org.eclipse.equinox.internal.provisional.p2.metadata.*;
import org.eclipse.equinox.p2.metadata.*;
import org.eclipse.equinox.p2.metadata.query.IQuery;
@@ -34,7 +35,7 @@ public class ResolvedInstallableUnit implements IInstallableUnit {
public List<IInstallableUnitFragment> getFragments() {
int fcount = fragments.length;
if (fcount == 0)
- return Collections.emptyList();
+ return CollectionUtils.emptyList();
ArrayList<IInstallableUnitFragment> result = new ArrayList<IInstallableUnitFragment>(fcount);
result.addAll(Arrays.asList(fragments));

Back to the top