From edf705b166e750cfe4ea6ecf262821994b7817d5 Mon Sep 17 00:00:00 2001 From: slievrly Date: Wed, 18 Sep 2019 23:28:37 +0800 Subject: [PATCH] clean code. #814 --- .../src/main/java/com/taobao/arthas/common/PlatformEnum.java | 2 +- .../arthas/core/shell/system/impl/GlobalJobControllerImpl.java | 2 +- .../test/java/com/taobao/arthas/core/testtool/TestUtils.java | 1 - .../test/java/com/taobao/arthas/core/util/FileUtilsTest.java | 3 --- testcase/src/main/java/com/alibaba/arthas/Type.java | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/common/src/main/java/com/taobao/arthas/common/PlatformEnum.java b/common/src/main/java/com/taobao/arthas/common/PlatformEnum.java index 49e1e6829..326f4abea 100644 --- a/common/src/main/java/com/taobao/arthas/common/PlatformEnum.java +++ b/common/src/main/java/com/taobao/arthas/common/PlatformEnum.java @@ -18,5 +18,5 @@ public enum PlatformEnum { */ MACOSX, - UNKNOWN; + UNKNOWN } \ No newline at end of file diff --git a/core/src/main/java/com/taobao/arthas/core/shell/system/impl/GlobalJobControllerImpl.java b/core/src/main/java/com/taobao/arthas/core/shell/system/impl/GlobalJobControllerImpl.java index e67f84705..61545fa59 100644 --- a/core/src/main/java/com/taobao/arthas/core/shell/system/impl/GlobalJobControllerImpl.java +++ b/core/src/main/java/com/taobao/arthas/core/shell/system/impl/GlobalJobControllerImpl.java @@ -50,7 +50,7 @@ public class GlobalJobControllerImpl extends JobControllerImpl { jobTimeoutTask.cancel(); } return super.removeJob(id); - }; + } @Override public Job createJob(InternalCommandManager commandManager, List tokens, ShellImpl shell) { diff --git a/core/src/test/java/com/taobao/arthas/core/testtool/TestUtils.java b/core/src/test/java/com/taobao/arthas/core/testtool/TestUtils.java index 7c6c09b64..701d61ad2 100644 --- a/core/src/test/java/com/taobao/arthas/core/testtool/TestUtils.java +++ b/core/src/test/java/com/taobao/arthas/core/testtool/TestUtils.java @@ -16,7 +16,6 @@ */ package com.taobao.arthas.core.testtool; -import com.taobao.arthas.core.shell.cli.CliToken; import org.junit.Assert; import java.io.File; diff --git a/core/src/test/java/com/taobao/arthas/core/util/FileUtilsTest.java b/core/src/test/java/com/taobao/arthas/core/util/FileUtilsTest.java index 486070993..fbbc7cd59 100644 --- a/core/src/test/java/com/taobao/arthas/core/util/FileUtilsTest.java +++ b/core/src/test/java/com/taobao/arthas/core/util/FileUtilsTest.java @@ -8,12 +8,9 @@ import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import java.io.File; -import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; -import java.io.InputStream; import java.nio.charset.Charset; -import java.util.Arrays; import java.util.List; import static org.hamcrest.CoreMatchers.allOf; diff --git a/testcase/src/main/java/com/alibaba/arthas/Type.java b/testcase/src/main/java/com/alibaba/arthas/Type.java index 21476b503..10dc37664 100644 --- a/testcase/src/main/java/com/alibaba/arthas/Type.java +++ b/testcase/src/main/java/com/alibaba/arthas/Type.java @@ -1,5 +1,5 @@ package com.alibaba.arthas; public enum Type { - RUN, STOP; + RUN, STOP }