From d02cee54741ed4cec2b853ecbaff6a3270d33993 Mon Sep 17 00:00:00 2001 From: Chen Date: Thu, 23 Jul 2020 07:20:12 +0800 Subject: [PATCH] FixTypo (#607) --- api/src/main/java/io/jsonwebtoken/io/Base64.java | 4 ++-- api/src/main/java/io/jsonwebtoken/lang/Strings.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/src/main/java/io/jsonwebtoken/io/Base64.java b/api/src/main/java/io/jsonwebtoken/io/Base64.java index 201e3c54..c03d00a9 100644 --- a/api/src/main/java/io/jsonwebtoken/io/Base64.java +++ b/api/src/main/java/io/jsonwebtoken/io/Base64.java @@ -111,7 +111,7 @@ final class Base64 { //final and package-protected on purpose // Encode even 24-bits for (int s = 0, d = 0, cc = 0; s < eLen; ) { - // Copy next three bytes into lower 24 bits of int, paying attension to sign. + // Copy next three bytes into lower 24 bits of int, paying attention to sign. int i = (sArr[s++] & 0xff) << 16 | (sArr[s++] & 0xff) << 8 | (sArr[s++] & 0xff); // Encode the int into four chars @@ -339,7 +339,7 @@ final class Base64 { //final and package-protected on purpose // Encode even 24-bits for (int s = sOff, d = 0, cc = 0; s < sOff + eLen; ) { - // Copy next three bytes into lower 24 bits of int, paying attension to sign. + // Copy next three bytes into lower 24 bits of int, paying attention to sign. int i = (sArr[s++] & 0xff) << 16 | (sArr[s++] & 0xff) << 8 | (sArr[s++] & 0xff); // Encode the int into four chars diff --git a/api/src/main/java/io/jsonwebtoken/lang/Strings.java b/api/src/main/java/io/jsonwebtoken/lang/Strings.java index 065bb251..541ac29e 100644 --- a/api/src/main/java/io/jsonwebtoken/lang/Strings.java +++ b/api/src/main/java/io/jsonwebtoken/lang/Strings.java @@ -196,7 +196,7 @@ public final class Strings { /** * Trim all whitespace from the given String: - * leading, trailing, and inbetween characters. + * leading, trailing, and intermediate characters. * @param str the String to check * @return the trimmed String * @see java.lang.Character#isWhitespace @@ -253,7 +253,7 @@ public final class Strings { } /** - * Trim all occurences of the supplied leading character from the given String. + * Trim all occurrences of the supplied leading character from the given String. * @param str the String to check * @param leadingCharacter the leading character to be trimmed * @return the trimmed String @@ -270,7 +270,7 @@ public final class Strings { } /** - * Trim all occurences of the supplied trailing character from the given String. + * Trim all occurrences of the supplied trailing character from the given String. * @param str the String to check * @param trailingCharacter the trailing character to be trimmed * @return the trimmed String @@ -369,7 +369,7 @@ public final class Strings { } /** - * Replace all occurences of a substring within a string with + * Replace all occurrences of a substring within a string with * another string. * @param inString String to examine * @param oldPattern String to replace