mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-29 18:58:37 +08:00
fix some typos
Signed-off-by: wellweek <xiezitai@outlook.com>
This commit is contained in:
parent
caecaac1a9
commit
b9fe1e1747
@ -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
|
||||
|
@ -817,7 +817,7 @@ public abstract class SocketClient
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -210,7 +210,7 @@ public abstract class TelnetOptionHandler
|
||||
* The method is used to specify a subnegotiation sequence that will be
|
||||
* sent by TelnetClient when the option is activated.
|
||||
* <p>
|
||||
* 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 abstract class TelnetOptionHandler
|
||||
* The method is used to specify a subnegotiation sequence that will be
|
||||
* sent by TelnetClient when the option is activated.
|
||||
* <p>
|
||||
* 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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -61,7 +61,7 @@ public abstract class ShellServer {
|
||||
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 abstract class ShellServer {
|
||||
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
|
||||
*/
|
||||
|
@ -13,7 +13,7 @@ import com.taobao.middleware.cli.CLI;
|
||||
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 abstract class CommandBuilder {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user