Syntax cleanup.

This commit is contained in:
Erik C. Thauvin 2019-03-30 20:31:36 -07:00
parent f8a8e5917b
commit 6fcf7daa1c
2 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ public class VersionInfo {
} }
/** /**
* Creates a new object with values from a {@link net.thauvin.erik.semver.Version Version} object. * Creates a new object with values from a {@link net.thauvin.erik.semver.VersionInfo VersionInfo} object.
* *
* @param version The version object. * @param version The version object.
*/ */
@ -253,9 +253,9 @@ public class VersionInfo {
public String getVersion() { public String getVersion() {
return Integer.toString(major) return Integer.toString(major)
+ '.' + '.'
+ Integer.toString(minor) + minor
+ '.' + '.'
+ Integer.toString(patch) + patch
+ (preRelease.length() > 0 ? '-' + preRelease : "") + (preRelease.length() > 0 ? '-' + preRelease : "")
+ (buildMeta.length() > 0 ? '+' + buildMeta : ""); + (buildMeta.length() > 0 ? '+' + buildMeta : "");
} }