From 176b272f30c4fbd62013b4702ab28518c21628ac Mon Sep 17 00:00:00 2001
From: Nils Breunese
Date: Tue, 13 Jul 2021 20:36:38 +0200
Subject: [PATCH] [MNG-7185] Describe explicit and recommended version for
VersionRange.createFromVersionSpec()
This closes #487
---
.../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 bbc6523607..3689b2e7ab 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
*
* Some spec examples are:
*
- * 1.0
Version 1.0
+ * 1.0
Version 1.0 as a recommended version
+ * [1.0]
Version 1.0 explicitly only
* [1.0,2.0)
Versions 1.0 (included) to 2.0 (not included)
* [1.0,2.0]
Versions 1.0 to 2.0 (both included)
* [1.5,)
Versions 1.5 and higher