improve welcome msg

This commit is contained in:
hengyunabc committed 2018-09-07 01:26:32 +08:00
1 parent 3358f31841
commit 9f6cba09df
1 file changed
+1 -1
@@ -33,7 +33,7 @@ public class ArthasBanner {
THANKS = IOUtils.toString(ShellServerOptions.class.getResourceAsStream(CREDIT_LOCATION)); THANKS = IOUtils.toString(ShellServerOptions.class.getResourceAsStream(CREDIT_LOCATION));
InputStream versionInputStream = ShellServerOptions.class.getResourceAsStream(VERSION_LOCATION); InputStream versionInputStream = ShellServerOptions.class.getResourceAsStream(VERSION_LOCATION);
if (versionInputStream != null) { if (versionInputStream != null) {
VERSION = IOUtils.toString(versionInputStream); VERSION = IOUtils.toString(versionInputStream).trim();
} else { } else {
String implementationVersion = ArthasBanner.class.getPackage().getImplementationVersion(); String implementationVersion = ArthasBanner.class.getPackage().getImplementationVersion();
if (implementationVersion != null) { if (implementationVersion != null) {