fix: download missing library more than one time

This commit is contained in:
huanghongxun 2020-02-04 22:38:59 +08:00
parent 9c1905bb51
commit c7e3639155

View File

@ -217,9 +217,12 @@ public class Version implements Comparable<Version>, Validation {
}
/**
* Resolve given version
* Resolve given version.
* Resolving version will list all patches within this version and its parents,
* which is for analysis.
*/
public Version resolve(VersionProvider provider) throws VersionNotFoundException {
if (isResolved()) return this;
return resolve(provider, new HashSet<>()).setResolved();
}