@Override
    public int compareTo (@SuppressWarnings("NullableProblems") JavaInfo o) {
        if (o.major > major)
            return -1;
        if (o.major < major)
            return 1;
        if (o.minor > minor)
            return -1;
        if (o.minor < minor)
            return 1;
        if (o.revision > revision)
            return -1;
        if (o.revision < revision)
            return 1;
        if (o.build > build)
            return -1;
        if (o.build < build)
            return 1;
        return 0;
    }