It should be

    int version = majorVersion(id) * 10 + minorVersion(id);