Skip to content

Commit 2823581

Browse files
author
jantje
committed
updated comments
1 parent a9c8a54 commit 2823581

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

io.sloeber.core/src/io/sloeber/core/tools/Version.java

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
@SuppressWarnings("unused")
33
public class Version {
44
/**
5-
* compares 2 strings as if they are version numbers if version1<version2
6-
* returns -1 if version1==version2(also if both are null) returns 0 else
7-
* return 1 This method caters for the null case
8-
*
9-
* @param version1
10-
* @param version2
11-
* @return
12-
*/
5+
* compares 2 strings as if they are version numbers
6+
* if version1 < version2 returns -1
7+
* if version1==version2 (also if both are null) returns 0
8+
* else return 1 This method caters for the null case
9+
*
10+
* @param version1
11+
* @param version2
12+
* @return
13+
**/
1314
public static int compare(String version1, String version2) {
1415
if (version1 == null) {
1516
return version2 == null ? 0 : -1;

0 commit comments

Comments
 (0)