Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: wellweek <[email protected]>
  • Loading branch information
wellweek authored and hengyunabc committed Mar 8, 2024
1 parent caecaac commit b9fe1e1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bin/as.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <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
Expand All @@ -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.
* <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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ 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
*/
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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b9fe1e1

Please sign in to comment.