Skip to content

Commit e6110ce

Browse files
committed
merge
1 parent 2068998 commit e6110ce

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/main/java/org/scm4j/commons/Version.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,6 @@ public Version toSnapshot() {
152152
return new Version(toSnapshotString());
153153
}
154154

155-
public Version toRelease() {
156-
if (!isSemantic) {
157-
return this;
158-
}
159-
return new Version(prefix + minor + (patch.isEmpty() ? "" : ".0"));
160-
}
161-
162155
public String toReleaseString() {
163156
return toRelease().toString();
164157
}
@@ -202,6 +195,10 @@ public String getReleaseNoPatchString() {
202195
return prefix + minor;
203196
}
204197

198+
public String toReleaseString() {
199+
return toRelease().toString();
200+
}
201+
205202
public Version setMinor(String minor) {
206203
if (!isSemantic) {
207204
throw new IllegalStateException("can not set minor for non-semantic version");

0 commit comments

Comments
 (0)