You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/10/22 16:35:38 UTC

[GitHub] [maven] sultan commented on a diff in pull request #845: [MNG-7559] Fix versions comparison

sultan commented on code in PR #845:
URL: https://github.com/apache/maven/pull/845#discussion_r1002523615


##########
maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java:
##########
@@ -354,15 +354,15 @@ public String toString()
         implements Item
     {
         private static final List<String> QUALIFIERS =
-                Arrays.asList( "alpha", "beta", "milestone", "rc", "snapshot", "", "sp"  );
+                Arrays.asList( "alpha", "beta", "milestone", "preview", "rc", "snapshot", "", "sp"  );
 
         private static final Properties ALIASES = new Properties();
         static
         {
-            ALIASES.put( "ga", "" );
+            ALIASES.put( "cr", "rc" );
             ALIASES.put( "final", "" );
+            ALIASES.put( "ga", "" );
             ALIASES.put( "release", "" );
-            ALIASES.put( "cr", "rc" );
         }

Review Comment:
   not functional but makes the tag ordering intention clearer: RC < final, ga, release



-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org