Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-01-05 18:54:02 +0000
committerAndrew Niefer2010-01-05 18:54:02 +0000
commit095a63af67486733d0e937605f4c0651b5fa1e14 (patch)
tree0e20565b1c60b50fcd776241a4ea0503ee0c7075
parentfb555e6dfa9c5aa1cb0322572bf3e3aa7fca36b7 (diff)
downloadrt.equinox.p2-095a63af67486733d0e937605f4c0651b5fa1e14.tar.gz
rt.equinox.p2-095a63af67486733d0e937605f4c0651b5fa1e14.tar.xz
rt.equinox.p2-095a63af67486733d0e937605f4c0651b5fa1e14.zip
fix concurrent modification exception
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java
index f6f3469a0..d9aff0614 100644
--- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java
+++ b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherAction.java
@@ -10,8 +10,6 @@
******************************************************************************/
package org.eclipse.equinox.p2.publisher;
-import org.eclipse.equinox.p2.repository.artifact.spi.ProcessingStepDescriptor;
-
import java.io.*;
import java.util.*;
import java.util.Map.Entry;
@@ -33,6 +31,7 @@ import org.eclipse.equinox.p2.metadata.query.IQueryResult;
import org.eclipse.equinox.p2.publisher.actions.*;
import org.eclipse.equinox.p2.repository.artifact.*;
import org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor;
+import org.eclipse.equinox.p2.repository.artifact.spi.ProcessingStepDescriptor;
import org.eclipse.equinox.spi.p2.publisher.PublisherHelper;
import org.osgi.framework.Filter;
import org.osgi.framework.InvalidSyntaxException;
@@ -363,7 +362,7 @@ public abstract class AbstractPublisherAction implements IPublisherAction {
if (providedAdvice != null) {
Collection<IProvidedCapability> current = iu.getProvidedCapabilities();
Set<IProvidedCapability> resultProvidedCapabilities = new HashSet<IProvidedCapability>(current);
- for (IProvidedCapability currentProvidedCapability : resultProvidedCapabilities) {
+ for (IProvidedCapability currentProvidedCapability : current) {
for (int k = 0; k < providedAdvice.length; k++) {
IProvidedCapability providedCapability = providedAdvice[k];
if (providedCapability.getNamespace().equals(currentProvidedCapability.getNamespace()) && providedCapability.getName().equals(currentProvidedCapability.getName())) {

Back to the top