• 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
..
AdminConsoleTest.java Loading commit data...
AesEncryptorTest.java Loading commit data...
BlowfishEncryptorTest.java Loading commit data...
CertificateTest.java Loading commit data...
EntityCapabilitiesManagerTest.java Loading commit data...
JIDTest.java Loading commit data...
LDAPTest.java Loading commit data...
StringUtilsTest.java Loading commit data...
TestUtils.java Loading commit data...
VersionTest.java Loading commit data...
XMLPropertiesTest.java Loading commit data...
XMPPDateTimeFormatTest.java Loading commit data...
XPPWriterTest.java Loading commit data...