Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java')
-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