Skip to content

Commit d02cee5

Browse files
authored
FixTypo (#607)
1 parent 901048a commit d02cee5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

api/src/main/java/io/jsonwebtoken/io/Base64.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private char[] encodeToChar(byte[] sArr, boolean lineSep) {
111111
// Encode even 24-bits
112112
for (int s = 0, d = 0, cc = 0; s < eLen; ) {
113113

114-
// Copy next three bytes into lower 24 bits of int, paying attension to sign.
114+
// Copy next three bytes into lower 24 bits of int, paying attention to sign.
115115
int i = (sArr[s++] & 0xff) << 16 | (sArr[s++] & 0xff) << 8 | (sArr[s++] & 0xff);
116116

117117
// Encode the int into four chars
@@ -339,7 +339,7 @@ public final byte[] encodeToByte(byte[] sArr, int sOff, int sLen, boolean lineSe
339339
// Encode even 24-bits
340340
for (int s = sOff, d = 0, cc = 0; s < sOff + eLen; ) {
341341
342-
// Copy next three bytes into lower 24 bits of int, paying attension to sign.
342+
// Copy next three bytes into lower 24 bits of int, paying attention to sign.
343343
int i = (sArr[s++] & 0xff) << 16 | (sArr[s++] & 0xff) << 8 | (sArr[s++] & 0xff);
344344
345345
// Encode the int into four chars

api/src/main/java/io/jsonwebtoken/lang/Strings.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static CharSequence clean(CharSequence str) {
196196

197197
/**
198198
* Trim <i>all</i> whitespace from the given String:
199-
* leading, trailing, and inbetween characters.
199+
* leading, trailing, and intermediate characters.
200200
* @param str the String to check
201201
* @return the trimmed String
202202
* @see java.lang.Character#isWhitespace
@@ -253,7 +253,7 @@ public static String trimTrailingWhitespace(String str) {
253253
}
254254

255255
/**
256-
* Trim all occurences of the supplied leading character from the given String.
256+
* Trim all occurrences of the supplied leading character from the given String.
257257
* @param str the String to check
258258
* @param leadingCharacter the leading character to be trimmed
259259
* @return the trimmed String
@@ -270,7 +270,7 @@ public static String trimLeadingCharacter(String str, char leadingCharacter) {
270270
}
271271

272272
/**
273-
* Trim all occurences of the supplied trailing character from the given String.
273+
* Trim all occurrences of the supplied trailing character from the given String.
274274
* @param str the String to check
275275
* @param trailingCharacter the trailing character to be trimmed
276276
* @return the trimmed String
@@ -369,7 +369,7 @@ public static int countOccurrencesOf(String str, String sub) {
369369
}
370370

371371
/**
372-
* Replace all occurences of a substring within a string with
372+
* Replace all occurrences of a substring within a string with
373373
* another string.
374374
* @param inString String to examine
375375
* @param oldPattern String to replace

0 commit comments

Comments
 (0)