@Override
        public int compareTo(final JavaVersion other) {
            for (int i = 0; i < this.tokenizedVersion.length; i++) {
                final int tokenComparison = ComparableUtils.safeCompare(this.tokenizedVersion[i],
                        other.tokenizedVersion[i]);
                // If one token is larger return the comparison otherwise proceed to next token
                if (tokenComparison != 0) {
                    return tokenComparison;
                }
            }
            return 0;
        }
@return {@link KnownJavaVersions} representing the major version of the Java version if
        it's identifiable
aws-java-sdk-core/src/main/java/com/amazonaws/util/JavaVersionParser.java