diff options
author | Alexander Kurtakov | 2013-11-19 08:22:45 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-11-19 09:08:59 +0000 |
commit | 1eece4f1366d56ff50e5b41df6c2845fef0214ad (patch) | |
tree | 99856307405eefe819f385375658141a2e6a17ca /bundles/org.eclipse.equinox.p2.operations/src/org | |
parent | e193ccd994def3fd574aee5335e8cf8a1c610ae4 (diff) | |
download | rt.equinox.p2-1eece4f1366d56ff50e5b41df6c2845fef0214ad.tar.gz rt.equinox.p2-1eece4f1366d56ff50e5b41df6c2845fef0214ad.tar.xz rt.equinox.p2-1eece4f1366d56ff50e5b41df6c2845fef0214ad.zip |
Bug 422026 - Get rid of ColletionUtils.empty[Set|List|Map]
Now that p2 has Java 1.5 as a minimum there is no reason to not use the
JVM methods.
Change-Id: I89444e8d1e174c316e2b17fb4f53bc7b1d097c0a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.operations/src/org')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/UpdateOperation.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/UpdateOperation.java b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/UpdateOperation.java index ba8dc9c77..b8bf802b2 100644 --- a/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/UpdateOperation.java +++ b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/UpdateOperation.java @@ -14,7 +14,6 @@ package org.eclipse.equinox.p2.operations; import java.util.*; import org.eclipse.core.runtime.*; import org.eclipse.core.runtime.jobs.Job; -import org.eclipse.equinox.internal.p2.core.helpers.CollectionUtils; import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest; import org.eclipse.equinox.internal.p2.operations.*; import org.eclipse.equinox.p2.engine.IProfile; @@ -294,7 +293,7 @@ public class UpdateOperation extends ProfileChangeOperation { private Collection<IInstallableUnit> getInstalledIUs() { IProfile profile = session.getProfileRegistry().getProfile(profileId); if (profile == null) - return CollectionUtils.emptyList(); + return Collections.<IInstallableUnit> emptyList(); IQuery<IInstallableUnit> query = new UserVisibleRootQuery(); IQueryResult<IInstallableUnit> queryResult = profile.query(query, null); return queryResult.toUnmodifiableSet(); |