src/models/Version.java
BeforeProposed
+4−1
99 return new Version(Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]));
1010 }
1111 public int compareTo(Version other) {
12 return toString().compareTo(other.toString());
12 int order = Integer.compare(major, other.major);
13 if (order == 0) order = Integer.compare(minor, other.minor);
14 if (order == 0) order = Integer.compare(patch, other.patch);
15 return order;
1316 }
1417 public String toString() { return major + "." + minor + "." + patch; }
1518}