format code better

This commit is contained in:
shedaniel
2024-08-12 21:21:25 +09:00
parent 3b449e6270
commit 0332a849eb

View File

@@ -78,9 +78,10 @@ public record Version(int major, int minor, int micro, int patch, @Nullable Stri
return this.minor - other.minor; return this.minor - other.minor;
} else if (this.micro != other.micro) { } else if (this.micro != other.micro) {
return this.micro - other.micro; return this.micro - other.micro;
} else if (this.patch != other.patch) {
return this.patch - other.patch;
} else { } else {
return this.patch != other.patch ? this.patch - other.patch return Ordering.natural().nullsLast()
: Ordering.natural().nullsLast()
.compare(this.qualifier, other.qualifier); .compare(this.qualifier, other.qualifier);
} }
} }