@Override
    public int compareTo(JavaSpecVersion that) {
        if (that == null) {
            return 1;
        }
        return Integer.compare(minor, that.minor);
    }
Convenience method for comparing versions

@param otherVersion a version to compare against
@return {@code true} if this version is newer, otherwise {@code false}
xmppserver/src/main/java/org/jivesoftware/util/JavaSpecVersion.java