2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 08:17:11 -07:00

Replaced more append("x") with append('x') where applicable

This commit is contained in:
Erik C. Thauvin 2023-09-15 06:58:34 -07:00
parent 7009e54c71
commit f6cb944565
2 changed files with 3 additions and 3 deletions

View file

@ -134,13 +134,13 @@ public record Dependency(String groupId, String artifactId, VersionNumber versio
if (!classifier().isEmpty()) {
result.append('-').append(classifier());
}
result.append(".").append(type());
result.append('.').append(type());
return result.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)) {
result.append(':').append(version);
}

View file

@ -219,7 +219,7 @@ public record VersionNumber(Integer major, Integer minor, Integer revision, Stri
var version = new StringBuilder();
version.append(majorInt());
if (minor != null || revision != null) {
version.append(".");
version.append('.');
version.append(minorInt());
}
if (revision != null) {