mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-20 02:29:44 +08:00
Polish
This commit is contained in:
@@ -66,7 +66,7 @@ class Version implements Comparable<Version> {
|
|||||||
def matcher = (text.trim() =~ VERSION_REGEX)
|
def matcher = (text.trim() =~ VERSION_REGEX)
|
||||||
if (!matcher.matches()) {
|
if (!matcher.matches()) {
|
||||||
throw new InvalidVersionException("Could not determine version based on '$text': version format " +
|
throw new InvalidVersionException("Could not determine version based on '$text': version format " +
|
||||||
"is Minor.Major.Patch.Qualifier (i.e. 1.0.5.RELEASE")
|
"is Minor.Major.Patch.Qualifier (i.e. 1.0.5.RELEASE)")
|
||||||
}
|
}
|
||||||
Version version = new Version()
|
Version version = new Version()
|
||||||
version.major = Integer.valueOf(matcher[0][1])
|
version.major = Integer.valueOf(matcher[0][1])
|
||||||
|
Reference in New Issue
Block a user