Skip to content

Commit 53e2231

Browse files
authored
Merge pull request #870 from pavedroad/develop
chore: fix some minor issues in comments
2 parents 36aa31f + 9de5853 commit 53e2231

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/org/tron/common/utils/JsonFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ private void write(CharSequence data, int size) throws IOException {
11591159
*/
11601160
protected static class Tokenizer {
11611161

1162-
// We use possesive quantifiers (*+ and ++) because otherwise the Java
1162+
// We use possessive quantifiers (*+ and ++) because otherwise the Java
11631163
// regex matcher has stack overflows on large inputs.
11641164
private static final Pattern WHITESPACE =
11651165
Pattern.compile("(\\s|(#.*$))++", Pattern.MULTILINE);

src/main/java/org/tron/walletcli/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ private void exportWalletKeystore(String[] parameters) throws CipherException, I
767767
String channel = parameters[0];
768768
if (!channel.equalsIgnoreCase("tronlink")) {
769769
System.out.println("exportWalletKeystore " + failedHighlight() + ", channel error !!");
770-
System.out.println("currrently only tronlink is supported!!");
770+
System.out.println("currently only tronlink is supported!!");
771771
return;
772772
}
773773
String exportDirPath = parameters[1];

src/main/java/org/tron/walletserver/WalletApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public static File selcetMnemonicFile() {
532532
try {
533533
n = new Integer(num);
534534
} catch (NumberFormatException e) {
535-
System.out.println("Invaild number of " + num);
535+
System.out.println("Invalid number of " + num);
536536
System.out.println("Please choose again between 1 and " + mnemonicFiles.length);
537537
continue;
538538
}
@@ -637,7 +637,7 @@ public static boolean changeKeystorePassword(byte[] oldPassword, byte[] newPasso
637637
Credentials credentials = WalletUtils.loadCredentials(oldPassword, wallet);
638638
WalletUtils.updateWalletFile(newPassowrd, credentials.getPair(), wallet, true);
639639

640-
// udpate the password of mnemonicFile
640+
// update the password of mnemonicFile
641641
String ownerAddress = credentials.getAddress();
642642
File mnemonicFile = Paths.get("Mnemonic", ownerAddress + ".json").toFile();
643643
if (mnemonicFile.exists()) {

0 commit comments

Comments
 (0)