diff --git a/bin/as.sh b/bin/as.sh index 2d3e1d9afb..15537fb592 100755 --- a/bin/as.sh +++ b/bin/as.sh @@ -260,7 +260,7 @@ reset_for_env() JAVA_HOME=$(echo "$JAVA_COMMAND_PATH" | sed -n 's/\/bin\/java$//p') fi - # iterater throught candidates to find a proper JAVA_HOME at least contains tools.jar which is required by arthas. + # iterater through candidates to find a proper JAVA_HOME at least contains tools.jar which is required by arthas. if [ ! -d "${JAVA_HOME}" ]; then JAVA_HOME_CANDIDATES=($(ps aux | grep java | grep -v 'grep java' | awk '{print $11}' | sed -n 's/\/bin\/java$//p')) for JAVA_HOME_TEMP in ${JAVA_HOME_CANDIDATES[@]}; do diff --git a/client/src/main/java/org/apache/commons/net/SocketClient.java b/client/src/main/java/org/apache/commons/net/SocketClient.java index e23b985dba..8a43cf7acd 100644 --- a/client/src/main/java/org/apache/commons/net/SocketClient.java +++ b/client/src/main/java/org/apache/commons/net/SocketClient.java @@ -817,7 +817,7 @@ protected void createCommandSupport(){ /** * Subclasses can override this if they need to provide their own - * instance field for backwards compatibilty. + * instance field for backwards compatibility. * * @return the CommandSupport instance, may be {@code null} * @since 3.0 diff --git a/client/src/main/java/org/apache/commons/net/telnet/TelnetOptionHandler.java b/client/src/main/java/org/apache/commons/net/telnet/TelnetOptionHandler.java index 14b4f01571..2853a06f00 100644 --- a/client/src/main/java/org/apache/commons/net/telnet/TelnetOptionHandler.java +++ b/client/src/main/java/org/apache/commons/net/telnet/TelnetOptionHandler.java @@ -210,7 +210,7 @@ public int[] answerSubnegotiation(int suboptionData[], int suboptionLength) { * The method is used to specify a subnegotiation sequence that will be * sent by TelnetClient when the option is activated. *

- * This implementation returns null, and must be overriden by + * This implementation returns null, and must be overridden by * the actual TelnetOptionHandler to specify * which response must be sent for the subnegotiation request. * @return subnegotiation sequence to be sent by TelnetClient. TelnetClient @@ -226,7 +226,7 @@ public int[] startSubnegotiationLocal() { * The method is used to specify a subnegotiation sequence that will be * sent by TelnetClient when the option is activated. *

- * This implementation returns null, and must be overriden by + * This implementation returns null, and must be overridden by * the actual TelnetOptionHandler to specify * which response must be sent for the subnegotiation request. * @return subnegotiation sequence to be sent by TelnetClient. TelnetClient diff --git a/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java b/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java index 54657ed302..467e219182 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java +++ b/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java @@ -77,7 +77,7 @@ public class ProfilerCommand extends AnnotatedCommand { /** * profile allocations with BYTES interval - * according to async-profiler README, alloc may contains non-numeric charactors + * according to async-profiler README, alloc may contains non-numeric characters */ private String alloc; @@ -88,7 +88,7 @@ public class ProfilerCommand extends AnnotatedCommand { /** * profile contended locks longer than DURATION ns - * according to async-profiler README, alloc may contains non-numeric charactors + * according to async-profiler README, alloc may contains non-numeric characters */ private String lock; diff --git a/core/src/main/java/com/taobao/arthas/core/shell/ShellServer.java b/core/src/main/java/com/taobao/arthas/core/shell/ShellServer.java index ff11ac2ea4..45d12638d1 100644 --- a/core/src/main/java/com/taobao/arthas/core/shell/ShellServer.java +++ b/core/src/main/java/com/taobao/arthas/core/shell/ShellServer.java @@ -61,7 +61,7 @@ public static ShellServer create() { public abstract ShellServer registerTermServer(TermServer termServer); /** - * Create a new shell, the returned shell should be closed explicitely. + * Create a new shell, the returned shell should be closed explicitly. * * @param term the shell associated terminal * @return the created shell @@ -69,7 +69,7 @@ public static ShellServer create() { public abstract Shell createShell(Term term); /** - * Create a new shell, the returned shell should be closed explicitely. + * Create a new shell, the returned shell should be closed explicitly. * * @return the created shell */ diff --git a/core/src/main/java/com/taobao/arthas/core/shell/command/CommandBuilder.java b/core/src/main/java/com/taobao/arthas/core/shell/command/CommandBuilder.java index 1e07a9a810..1acaf6e787 100644 --- a/core/src/main/java/com/taobao/arthas/core/shell/command/CommandBuilder.java +++ b/core/src/main/java/com/taobao/arthas/core/shell/command/CommandBuilder.java @@ -13,7 +13,7 @@ public abstract class CommandBuilder { /** - * Create a new commmand builder, the command is responsible for managing the options and arguments via the + * Create a new command builder, the command is responsible for managing the options and arguments via the * {@link CommandProcess#args() arguments}. * * @param name the command name @@ -24,7 +24,7 @@ public static CommandBuilder command(String name) { } /** - * Create a new commmand with its {@link CLI} descriptor. This command can then retrieve the parsed + * Create a new command with its {@link CLI} descriptor. This command can then retrieve the parsed * {@link CommandProcess#commandLine()} when it executes to know get the command arguments and options. * * @param cli the cli to use