if (versionParts.length >= 3)
try {
micro = versionParts.length == 2 ? -1 : detect(versionParts[2]);
} catch (NumberFormatException e) {}
Type type = major == 0 ? (minor < 5 ? Type.Alpha : Type.Beta) : Type.Stable;
if (versionParts.length < 4) return new VersionImpl(versionStr, major, minor, micro, null, type);
long typeVersion = -1;
String typeString = "";