mirror of
https://github.com/rife2/bld
synced 2025-12-20 16:48:38 +01:00
Replaced more append("x") with append('x') where applicable
This commit is contained in:
parent
7009e54c71
commit
f6cb944565
|
|
@ -134,13 +134,13 @@ public record Dependency(String groupId, String artifactId, VersionNumber versio
|
||||||
if (!classifier().isEmpty()) {
|
if (!classifier().isEmpty()) {
|
||||||
result.append('-').append(classifier());
|
result.append('-').append(classifier());
|
||||||
}
|
}
|
||||||
result.append(".").append(type());
|
result.append('.').append(type());
|
||||||
return result.toString();
|
return result.toString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
var result = new StringBuilder(groupId).append(":").append(artifactId);
|
var result = new StringBuilder(groupId).append(':').append(artifactId);
|
||||||
if (!version.equals(VersionNumber.UNKNOWN)) {
|
if (!version.equals(VersionNumber.UNKNOWN)) {
|
||||||
result.append(':').append(version);
|
result.append(':').append(version);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@ public record VersionNumber(Integer major, Integer minor, Integer revision, Stri
|
||||||
var version = new StringBuilder();
|
var version = new StringBuilder();
|
||||||
version.append(majorInt());
|
version.append(majorInt());
|
||||||
if (minor != null || revision != null) {
|
if (minor != null || revision != null) {
|
||||||
version.append(".");
|
version.append('.');
|
||||||
version.append(minorInt());
|
version.append(minorInt());
|
||||||
}
|
}
|
||||||
if (revision != null) {
|
if (revision != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue