summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykola Nikishov2018-03-24 09:32:12 -0400
committerMykola Nikishov2018-06-14 04:06:19 -0400
commita3ae11c05804ba545be5991c9121a0e9966e94c1 (patch)
treed72598f2880ac0da1f3844a41b90e3288efbcb04
parent47188bd002fd035df0966fa5639609752496c3f0 (diff)
downloadrt.equinox.p2-a3ae11c05804ba545be5991c9121a0e9966e94c1.tar.gz
rt.equinox.p2-a3ae11c05804ba545be5991c9121a0e9966e94c1.tar.xz
rt.equinox.p2-a3ae11c05804ba545be5991c9121a0e9966e94c1.zip
Change-Id: I5c469e350b720d167333ad7142d3fa5275236877 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
-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() {