• 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
..
cache Loading commit data...
cert Loading commit data...
log/util Loading commit data...
AesEncryptor.java Loading commit data...
AlreadyExistsException.java Loading commit data...
Base64.java Loading commit data...
BeanUtils.java Loading commit data...
Blowfish.java Loading commit data...
ByteFormat.java Loading commit data...
CertificateEventListener.java Loading commit data...
CertificateManager.java Loading commit data...
ClassUtils.java Loading commit data...
ConcurrentHashSet.java Loading commit data...
CookieUtils.java Loading commit data...
ElementUtil.java Loading commit data...
EmailService.java Loading commit data...
Encryptor.java Loading commit data...
FastDateFormat.java Loading commit data...
FaviconServlet.java Loading commit data...
HTTPConnectionException.java Loading commit data...
HttpClientWithTimeoutFeedFetcher.java Loading commit data...
InitializationException.java Loading commit data...
InputOutputStreamWrapper.java Loading commit data...
InternalServerErrorException.java Loading commit data...
JiveBeanInfo.java Loading commit data...
JiveConstants.java Loading commit data...
JiveGlobals.java Loading commit data...
JiveInitialLdapContext.java Loading commit data...
JiveProperties.java Loading commit data...
LinkedList.java Loading commit data...
LinkedListNode.java Loading commit data...
LocaleFilter.java Loading commit data...
LocaleUtils.java Loading commit data...
Log.java Loading commit data...
ModificationNotAllowedException.java Loading commit data...
NotFoundException.java Loading commit data...
ParamUtils.java Loading commit data...
PersistableMap.java Loading commit data...
PropertyClusterEventTask.java Loading commit data...
PropertyEventDispatcher.java Loading commit data...
PropertyEventListener.java Loading commit data...
SetCharacterEncodingFilter.java Loading commit data...
SimpleSSLSocketFactory.java Loading commit data...
StringUtils.java Loading commit data...
TaskEngine.java Loading commit data...
Version.java Loading commit data...
WebBean.java Loading commit data...
WebManager.java Loading commit data...
XMLProperties.java Loading commit data...
XMLWriter.java Loading commit data...
XMPPDateTimeFormat.java Loading commit data...
package-info.java Loading commit data...