mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-17 12:15:01 +00:00
cleanup code
This commit is contained in:
51 files changed
+637
-373
No files matched your search
@@ -130,16 +130,35 @@ public class Library {
|
||||
|
||||
@StableAPI.Expose
|
||||
public Library build() {
|
||||
return new Library(loadingModId, groupId, artifactId, minVersion, maxVersion, preferredVersion,
|
||||
regularSuffix, devSuffix);
|
||||
return new Library(loadingModId,
|
||||
groupId,
|
||||
artifactId,
|
||||
minVersion,
|
||||
maxVersion,
|
||||
preferredVersion,
|
||||
regularSuffix,
|
||||
devSuffix);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Library.LibraryBuilder(loadingModId=" + this.loadingModId + ", groupId=" + this.groupId +
|
||||
", artifactId=" + this.artifactId + ", minVersion=" + this.minVersion + ", maxVersion=" +
|
||||
this.maxVersion + ", preferredVersion=" + this.preferredVersion + ", regularSuffix=" +
|
||||
this.regularSuffix + ", devSuffix=" + this.devSuffix + ")";
|
||||
return "Library.LibraryBuilder(loadingModId="
|
||||
+ this.loadingModId
|
||||
+ ", groupId="
|
||||
+ this.groupId
|
||||
+ ", artifactId="
|
||||
+ this.artifactId
|
||||
+ ", minVersion="
|
||||
+ this.minVersion
|
||||
+ ", maxVersion="
|
||||
+ this.maxVersion
|
||||
+ ", preferredVersion="
|
||||
+ this.preferredVersion
|
||||
+ ", regularSuffix="
|
||||
+ this.regularSuffix
|
||||
+ ", devSuffix="
|
||||
+ this.devSuffix
|
||||
+ ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,9 +111,11 @@ public class SemanticVersion extends Version {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
// @formatter:off
|
||||
return majorVersion + (minorVersion < 0 ? "" : "." + minorVersion) +
|
||||
(patchVersion < 0 ? "" : "." + patchVersion) + (preRelease == null ? "" : "-" + preRelease) +
|
||||
(build == null ? "" : "+" + build);
|
||||
// @formatter:on
|
||||
}
|
||||
|
||||
@StableAPI(since = "0.10.0")
|
||||
@@ -165,9 +167,17 @@ public class SemanticVersion extends Version {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SemanticVersion.SemanticVersionBuilder(majorVersion=" + this.majorVersion + ", minorVersion=" +
|
||||
this.minorVersion + ", patchVersion=" + this.patchVersion + ", preRelease=" + this.preRelease +
|
||||
", build=" + this.build + ")";
|
||||
return "SemanticVersion.SemanticVersionBuilder(majorVersion="
|
||||
+ this.majorVersion
|
||||
+ ", minorVersion="
|
||||
+ this.minorVersion
|
||||
+ ", patchVersion="
|
||||
+ this.patchVersion
|
||||
+ ", preRelease="
|
||||
+ this.preRelease
|
||||
+ ", build="
|
||||
+ this.build
|
||||
+ ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user