kwin commented on code in PR #1637:
URL: https://github.com/apache/maven/pull/1637#discussion_r1712166037


##########
maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java:
##########
@@ -202,6 +203,9 @@ private static Restriction parseRestriction(String spec) 
throws InvalidVersionSp
     }
 
     public static VersionRange createFromVersion(String version) {
+        if (DefaultArtifact.empty(version)) {

Review Comment:
   Or should we throw here for null/empty string? If so, which exception?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to