@@ -35,8 +35,8 @@ private SdkDownloader() {
3535 * Downloads a SDK version from Maven Central (or local Maven repository) and
3636 * unpacks it in a subfolder under the given root directory.
3737 *
38- * If the given version is not specific enough (e.g. 1, or 1 .0), its latest
39- * minor/ patch version will be downloaded.
38+ * If the given version is not specific enough (e.g. 1.0), its latest
39+ * patch version will be downloaded.
4040 *
4141 * @param sdkVersion The SDK version to download.
4242 * @param rootDir The root directory where the SDK will be downloaded
@@ -204,7 +204,6 @@ private static SdkVersion getLatestSdkVersion(final SdkVersion baseVersion, fina
204204 Validate .notNull (baseVersion , "Undefined base version" );
205205
206206 try {
207- // First look for a release version (e.g., 1.0.0)
208207 return getHighestVersion (resolveVersionRange (getSearchPattern (baseVersion )), includeSnapshots );
209208 } catch (NoSuchElementException e1 ) {
210209 throw new IllegalArgumentException (
@@ -256,7 +255,7 @@ private static SdkVersion getHighestVersion(VersionRangeResult versionRange, boo
256255 throw new NoSuchElementException ();
257256 }
258257
259- // Get all the versions in the rage into a list of SdkVersion objects.
258+ // Get all the versions in the range into a list of SdkVersion objects.
260259 // Exclude snapshots if requested.
261260 List <SdkVersion > allVersions = rangeVersions .stream ()
262261 .map (Object ::toString )
0 commit comments