Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java')
-rw-r--r--bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java
index 61b1b32ba..b4b4e9186 100644
--- a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java
+++ b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateObjectFactoryImpl.java
@@ -121,9 +121,7 @@ public class StateObjectFactoryImpl implements StateObjectFactory {
includeIdentity.add(genericIdentity);
}
if (genericCapabilities != null) {
- for (GenericDescription genericDescription : genericCapabilities) {
- includeIdentity.add(genericDescription);
- }
+ Collections.addAll(includeIdentity, genericCapabilities);
}
if (!includeIdentity.isEmpty()) {
bundle.setGenericCapabilities(includeIdentity.toArray(new GenericDescription[includeIdentity.size()]));

Back to the top