Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-05-20 18:32:14 +0000
committerDJ Houghton2010-05-20 18:32:14 +0000
commit0d5faf566f30537925f0577eda26be19e5b05ca6 (patch)
tree63d8e2ee2ae509d52877872e69a107906a5b158b /bundles
parentdde8100412fbafea862408ec38cfa98c3d42582a (diff)
downloadrt.equinox.p2-0d5faf566f30537925f0577eda26be19e5b05ca6.tar.gz
rt.equinox.p2-0d5faf566f30537925f0577eda26be19e5b05ca6.tar.xz
rt.equinox.p2-0d5faf566f30537925f0577eda26be19e5b05ca6.zip
Bug 313490 - ConcurrentModificationException during synchronizing artifact repository (p2.directorywatcher)
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
index c4db322a4..e8213eda8 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
@@ -236,9 +236,9 @@ public class RepositoryListener extends DirectoryChangeListener {
if (artifactRepository == null)
return;
if (!removedFiles.isEmpty()) {
- IQueryResult<IArtifactDescriptor> descriptors = artifactRepository.descriptorQueryable().query(ArtifactDescriptorQuery.ALL_DESCRIPTORS, null);
- for (Iterator<IArtifactDescriptor> iterator = descriptors.iterator(); iterator.hasNext();) {
- SimpleArtifactDescriptor descriptor = (SimpleArtifactDescriptor) iterator.next();
+ IArtifactDescriptor[] descriptors = artifactRepository.descriptorQueryable().query(ArtifactDescriptorQuery.ALL_DESCRIPTORS, null).toArray(IArtifactDescriptor.class);
+ for (IArtifactDescriptor d : descriptors) {
+ SimpleArtifactDescriptor descriptor = (SimpleArtifactDescriptor) d;
String filename = descriptor.getRepositoryProperty(FILE_NAME);
if (filename == null) {
if (Tracing.DEBUG) {

Back to the top