diff options
author | Thomas Watson | 2016-09-29 13:27:28 +0000 |
---|---|---|
committer | Thomas Watson | 2016-09-29 14:33:27 +0000 |
commit | 61d4d356b63091bb27ea0c7be0a6daaf06b74c28 (patch) | |
tree | 6fd39d3bb846a8fbfa5d4ea58e0a077f432e0591 /bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/compatibility/state/PlatformBundleListener.java | |
parent | d200e63587ccac6d7c2d0f506b8f30a2ebe47fe5 (diff) | |
download | rt.equinox.framework-61d4d356b63091bb27ea0c7be0a6daaf06b74c28.tar.gz rt.equinox.framework-61d4d356b63091bb27ea0c7be0a6daaf06b74c28.tar.xz rt.equinox.framework-61d4d356b63091bb27ea0c7be0a6daaf06b74c28.zip |
Bug 502425 - Refactor code for Java 7
Change-Id: I64d3a28a743a0292db27fd421294421dc51eb2e1
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/compatibility/state/PlatformBundleListener.java')
-rw-r--r-- | bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/compatibility/state/PlatformBundleListener.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/compatibility/state/PlatformBundleListener.java b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/compatibility/state/PlatformBundleListener.java index 361c30b5c..cc6d41936 100644 --- a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/compatibility/state/PlatformBundleListener.java +++ b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/compatibility/state/PlatformBundleListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013 IBM Corporation and others. All rights reserved. + * Copyright (c) 2013, 2016 IBM Corporation and others. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html @@ -82,7 +82,7 @@ class PlatformBundleListener implements SynchronousBundleListener, FrameworkList if (lastResolveStamp != database.getRevisionsTimestamp()) { Collection<ModuleRevision> containerRemovalPending = container.getRemovalPending(); BundleDescription[] stateRemovalPendingDescs = systemState.getRemovalPending(); - Collection<BundleDescription> stateRemovalPending = new ArrayList<BundleDescription>(stateRemovalPendingDescs.length); + Collection<BundleDescription> stateRemovalPending = new ArrayList<>(stateRemovalPendingDescs.length); for (BundleDescription description : stateRemovalPendingDescs) { if (!containerRemovalPending.contains(description.getUserObject())) { stateRemovalPending.add(description); @@ -150,7 +150,7 @@ class PlatformBundleListener implements SynchronousBundleListener, FrameworkList candidates.clear(); return; } - Collection<ModuleWiring> wirings = new ArrayList<ModuleWiring>(1); + Collection<ModuleWiring> wirings = new ArrayList<>(1); if ((reqRevision.getTypes() & BundleRevision.TYPE_FRAGMENT) != 0) { if (ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE.equals(namespace) || HostNamespace.HOST_NAMESPACE.equals(namespace)) { wirings.add(reqWiring); |