File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/main/java/org/scm4j/commons Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments