clean code. #814

pull/883/head^2
slievrly 5 years ago committed by hengyunabc
parent 6cd52d568d
commit edf705b166

@ -18,5 +18,5 @@ public enum PlatformEnum {
*/ */
MACOSX, MACOSX,
UNKNOWN; UNKNOWN
} }

@ -50,7 +50,7 @@ public class GlobalJobControllerImpl extends JobControllerImpl {
jobTimeoutTask.cancel(); jobTimeoutTask.cancel();
} }
return super.removeJob(id); return super.removeJob(id);
}; }
@Override @Override
public Job createJob(InternalCommandManager commandManager, List<CliToken> tokens, ShellImpl shell) { public Job createJob(InternalCommandManager commandManager, List<CliToken> tokens, ShellImpl shell) {

@ -16,7 +16,6 @@
*/ */
package com.taobao.arthas.core.testtool; package com.taobao.arthas.core.testtool;
import com.taobao.arthas.core.shell.cli.CliToken;
import org.junit.Assert; import org.junit.Assert;
import java.io.File; import java.io.File;

@ -8,12 +8,9 @@ import org.junit.rules.ExpectedException;
import org.junit.rules.TemporaryFolder; import org.junit.rules.TemporaryFolder;
import java.io.File; import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.List; import java.util.List;
import static org.hamcrest.CoreMatchers.allOf; import static org.hamcrest.CoreMatchers.allOf;

@ -1,5 +1,5 @@
package com.alibaba.arthas; package com.alibaba.arthas;
public enum Type { public enum Type {
RUN, STOP; RUN, STOP
} }

Loading…
Cancel
Save