Improve Javadoc of ComparableVersion#main()

This closes #108
This commit is contained in:
Lubomir Varga 2017-04-11 16:00:42 +02:00 committed by Michael Osipov
commit 6a93bbea23
1 changed files with 12 additions and 1 deletions

View File

@ -472,8 +472,19 @@ public int hashCode()
/**
* Main to test version parsing and comparison.
* <p>
* Checks how "1.2.7" compares to "1.2-SNAPSHOT", for example, you can issue
* <code>java -cp ${maven.repo.local}/org/apache/maven/maven-artifact/${maven.version}/maven-artifact-${maven.version}.jar org.apache.maven.artifact.versioning.ComparableVersion "1.2.7" "1.2-SNAPSHOT"</code>
* command to command line. Result of given command will be something like this:
* <pre>
* Display parameters as parsed by Maven (in canonical form) and comparison result:
* 1. 1.2.7 == 1.2.7
* 1.2.7 &gt; 1.2-SNAPSHOT
* 2. 1.2-SNAPSHOT == 1.2-snapshot
* </pre>
*
* @param args the version strings to parse and compare
* @param args the version strings to parse and compare. You can pass arbitrary number of version strings and always
* two adjacent will be compared
*/
public static void main( String... args )
{