Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FixTypo #607

Merged
merged 1 commit into from
Jul 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/src/main/java/io/jsonwebtoken/io/Base64.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private char[] encodeToChar(byte[] sArr, boolean lineSep) {
// 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
Expand Down Expand Up @@ -339,7 +339,7 @@ public final byte[] encodeToByte(byte[] sArr, int sOff, int sLen, boolean lineSe
// 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
Expand Down
8 changes: 4 additions & 4 deletions api/src/main/java/io/jsonwebtoken/lang/Strings.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static CharSequence clean(CharSequence str) {

/**
* Trim <i>all</i> 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
Expand Down Expand Up @@ -253,7 +253,7 @@ public static String trimTrailingWhitespace(String str) {
}

/**
* 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
Expand All @@ -270,7 +270,7 @@ public static String trimLeadingCharacter(String str, char leadingCharacter) {
}

/**
* 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
Expand Down Expand Up @@ -369,7 +369,7 @@ public static int countOccurrencesOf(String str, String sub) {
}

/**
* 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
Expand Down