mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-05 17:38:06 +08:00
Polish
This commit is contained in:
parent
76a61d832f
commit
15157c941f
@ -87,11 +87,8 @@ public final class Version implements Serializable, Comparable<Version> {
|
||||
if (this.format == format) {
|
||||
return this;
|
||||
}
|
||||
if (format == Format.V1) {
|
||||
Qualifier qualifier = formatQualifier(".", this::toV1Qualifier);
|
||||
return new Version(this.major, this.minor, this.patch, qualifier);
|
||||
}
|
||||
Qualifier qualifier = formatQualifier("-", this::toV2Qualifier);
|
||||
Qualifier qualifier = (format == Format.V1) ? formatQualifier(".", this::toV1Qualifier)
|
||||
: formatQualifier("-", this::toV2Qualifier);
|
||||
return new Version(this.major, this.minor, this.patch, qualifier);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user