-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve version comparison when number of version segments is different
* Make entire version comparison case-insensitive * Update Versions#versionCompare to handle cases in which versions contain things like SNAPSHOT, alpha1, beta3, M1 etc. * Extract some methods to keep versionCompare relatively clean * Revise javadocs for Versions#versionCompare * Add a bunch of additional test expectations with versions from libraries we use such as Guava, Spring (w/ RELEASE naming convention), Jetty (old convention with yyyymmdd), JUnit with M1, M2, etc. as well as a bunch of other commonly seen situations that ought to cover the majority of real-world situations. Closes #45
- Loading branch information
1 parent
bba7619
commit c0fd497
Showing
2 changed files
with
143 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters