Skip to content

Commit b9fe1e1

Browse files
wellweekhengyunabc
authored andcommitted
fix some typos
Signed-off-by: wellweek <xiezitai@outlook.com>
1 parent caecaac commit b9fe1e1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

bin/as.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ reset_for_env()
260260
JAVA_HOME=$(echo "$JAVA_COMMAND_PATH" | sed -n 's/\/bin\/java$//p')
261261
fi
262262

263-
# iterater throught candidates to find a proper JAVA_HOME at least contains tools.jar which is required by arthas.
263+
# iterater through candidates to find a proper JAVA_HOME at least contains tools.jar which is required by arthas.
264264
if [ ! -d "${JAVA_HOME}" ]; then
265265
JAVA_HOME_CANDIDATES=($(ps aux | grep java | grep -v 'grep java' | awk '{print $11}' | sed -n 's/\/bin\/java$//p'))
266266
for JAVA_HOME_TEMP in ${JAVA_HOME_CANDIDATES[@]}; do

client/src/main/java/org/apache/commons/net/SocketClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ protected void createCommandSupport(){
817817

818818
/**
819819
* Subclasses can override this if they need to provide their own
820-
* instance field for backwards compatibilty.
820+
* instance field for backwards compatibility.
821821
*
822822
* @return the CommandSupport instance, may be {@code null}
823823
* @since 3.0

client/src/main/java/org/apache/commons/net/telnet/TelnetOptionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public int[] answerSubnegotiation(int suboptionData[], int suboptionLength) {
210210
* The method is used to specify a subnegotiation sequence that will be
211211
* sent by TelnetClient when the option is activated.
212212
* <p>
213-
* This implementation returns null, and must be overriden by
213+
* This implementation returns null, and must be overridden by
214214
* the actual TelnetOptionHandler to specify
215215
* which response must be sent for the subnegotiation request.
216216
* @return subnegotiation sequence to be sent by TelnetClient. TelnetClient
@@ -226,7 +226,7 @@ public int[] startSubnegotiationLocal() {
226226
* The method is used to specify a subnegotiation sequence that will be
227227
* sent by TelnetClient when the option is activated.
228228
* <p>
229-
* This implementation returns null, and must be overriden by
229+
* This implementation returns null, and must be overridden by
230230
* the actual TelnetOptionHandler to specify
231231
* which response must be sent for the subnegotiation request.
232232
* @return subnegotiation sequence to be sent by TelnetClient. TelnetClient

core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class ProfilerCommand extends AnnotatedCommand {
7777

7878
/**
7979
* profile allocations with BYTES interval
80-
* according to async-profiler README, alloc may contains non-numeric charactors
80+
* according to async-profiler README, alloc may contains non-numeric characters
8181
*/
8282
private String alloc;
8383

@@ -88,7 +88,7 @@ public class ProfilerCommand extends AnnotatedCommand {
8888

8989
/**
9090
* profile contended locks longer than DURATION ns
91-
* according to async-profiler README, alloc may contains non-numeric charactors
91+
* according to async-profiler README, alloc may contains non-numeric characters
9292
*/
9393
private String lock;
9494

core/src/main/java/com/taobao/arthas/core/shell/ShellServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ public static ShellServer create() {
6161
public abstract ShellServer registerTermServer(TermServer termServer);
6262

6363
/**
64-
* Create a new shell, the returned shell should be closed explicitely.
64+
* Create a new shell, the returned shell should be closed explicitly.
6565
*
6666
* @param term the shell associated terminal
6767
* @return the created shell
6868
*/
6969
public abstract Shell createShell(Term term);
7070

7171
/**
72-
* Create a new shell, the returned shell should be closed explicitely.
72+
* Create a new shell, the returned shell should be closed explicitly.
7373
*
7474
* @return the created shell
7575
*/

core/src/main/java/com/taobao/arthas/core/shell/command/CommandBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public abstract class CommandBuilder {
1414

1515
/**
16-
* Create a new commmand builder, the command is responsible for managing the options and arguments via the
16+
* Create a new command builder, the command is responsible for managing the options and arguments via the
1717
* {@link CommandProcess#args() arguments}.
1818
*
1919
* @param name the command name
@@ -24,7 +24,7 @@ public static CommandBuilder command(String name) {
2424
}
2525

2626
/**
27-
* Create a new commmand with its {@link CLI} descriptor. This command can then retrieve the parsed
27+
* Create a new command with its {@link CLI} descriptor. This command can then retrieve the parsed
2828
* {@link CommandProcess#commandLine()} when it executes to know get the command arguments and options.
2929
*
3030
* @param cli the cli to use

0 commit comments

Comments
 (0)