You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2021/07/14 10:48:59 UTC
[maven] branch maven-3.8.x updated: [MNG-7185] Describe explicit
and recommended version for VersionRange.createFromVersionSpec()
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch maven-3.8.x
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/maven-3.8.x by this push:
new 176b272 [MNG-7185] Describe explicit and recommended version for VersionRange.createFromVersionSpec()
176b272 is described below
commit 176b272f30c4fbd62013b4702ab28518c21628ac
Author: Nils Breunese <ni...@breun.nl>
AuthorDate: Tue Jul 13 20:36:38 2021 +0200
[MNG-7185] Describe explicit and recommended version for VersionRange.createFromVersionSpec()
This closes #487
---
.../main/java/org/apache/maven/artifact/versioning/VersionRange.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java b/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
index bbc6523..3689b2e 100644
--- a/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
+++ b/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
@@ -91,7 +91,8 @@ public class VersionRange
* </p>
* Some spec examples are:
* <ul>
- * <li><code>1.0</code> Version 1.0</li>
+ * <li><code>1.0</code> Version 1.0 as a recommended version</li>
+ * <li><code>[1.0]</code> Version 1.0 explicitly only</li>
* <li><code>[1.0,2.0)</code> Versions 1.0 (included) to 2.0 (not included)</li>
* <li><code>[1.0,2.0]</code> Versions 1.0 to 2.0 (both included)</li>
* <li><code>[1.5,)</code> Versions 1.5 and higher</li>