• Christian Schudt's avatar
    Various improvements in Version class · 23c84bf0
    Christian Schudt authored
    - Make it final and immutable.
    - Use pattern-based parsing, which allows to also parse the ReleaseStatus and the statusVersion.
    - Implement toString() method.
    - Implement equals() and hashCode(), which is a strong recommendation when implementing Comparable: From the JavaDoc: "It is strongly recommended that (x.compareTo(y)==0) == (x.equals(y))", which was not the case.
    - Allow CharSequence
    - Simplify getVersionString() method (less duplicate code).
    - Improve compareTo() method by properly comparing more than 2 digits and also comparing ReleaseStatus and statusVersion
    23c84bf0
Name
Last commit
Last update
..
bin Loading commit data...
conf Loading commit data...
database Loading commit data...
i18n Loading commit data...
java Loading commit data...
javadoc/jdk15 Loading commit data...
plugins Loading commit data...
resources Loading commit data...
security Loading commit data...
spank Loading commit data...
test Loading commit data...
tools/anttask/org/jivesoftware/ant Loading commit data...
web Loading commit data...