Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2010-10-06 16:00:28 -0400
committerJohn Arthorne2010-10-06 16:00:28 -0400
commit0bbc72d38d0fe4b1c438d93dbfde91655df6fa09 (patch)
treef4e9d321197cb4700ad315ec064849bb481426c2 /bundles/org.eclipse.equinox.p2.repository
parentfdfa6363a847d135212385970259283890243fd0 (diff)
downloadrt.equinox.p2-0bbc72d38d0fe4b1c438d93dbfde91655df6fa09.tar.gz
rt.equinox.p2-0bbc72d38d0fe4b1c438d93dbfde91655df6fa09.tar.xz
rt.equinox.p2-0bbc72d38d0fe4b1c438d93dbfde91655df6fa09.zip
Fixed compiler warnings
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java
index f71c37356..9e7d3e47f 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java
@@ -1172,8 +1172,8 @@ public abstract class AbstractRepositoryManager<T> implements IRepositoryManager
public void flushCache() {
synchronized (repositories) {
Collection<RepositoryInfo<T>> repos = repositories.values();
- for (Iterator iterator = repos.iterator(); iterator.hasNext();) {
- RepositoryInfo<T> repositoryInfo = (RepositoryInfo<T>) iterator.next();
+ for (Iterator<RepositoryInfo<T>> iterator = repos.iterator(); iterator.hasNext();) {
+ RepositoryInfo<T> repositoryInfo = iterator.next();
repositoryInfo.repository = null;
}
}

Back to the top