Update & Crash

This commit is contained in:
huangyuhui
2018-02-02 17:45:29 +08:00
parent e4bd1c758f
commit c923ed69a0
6 changed files with 55 additions and 27 deletions

View File

@@ -18,6 +18,7 @@
package org.jackhuang.hmcl.util;
import java.util.List;
import java.util.stream.Collectors;
/**
* If a version string formats x.x.x.x, a {@code IntVersionNumber}
@@ -72,4 +73,9 @@ public final class IntVersionNumber extends VersionNumber {
return false;
return true;
}
@Override
public String toString() {
return String.join(".", version.stream().map(Object::toString).collect(Collectors.toList()));
}
}