Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorSelector.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorSelector.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorSelector.java
index 1b5599861..f23713f94 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorSelector.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorSelector.java
@@ -335,16 +335,15 @@ public class MirrorSelector {
}
/**
- * Returns the mirror locations for this repository, or <code>null</code> if
+ * Initialize @{link #mirrors} for @{link #repository}, or <code>null</code> if
* they could not be computed.
*/
- private MirrorInfo[] initMirrors(IProgressMonitor monitor) {
+ private void initMirrors(IProgressMonitor monitor) {
if (mirrors != null)
- return mirrors;
+ return;
String mirrorsURL = repository.getProperties().get(IRepository.PROP_MIRRORS_URL);
if (mirrorsURL != null)
mirrors = computeMirrors(mirrorsURL, monitor);
- return mirrors;
}
private MirrorInfoComparator getComparator() {

Back to the top