This commit is contained in:
Chen 2020-07-23 07:20:12 +08:00 committed by GitHub
parent 901048aeac
commit d02cee5474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ final class Base64 { //final and package-protected on purpose
// Encode even 24-bits // Encode even 24-bits
for (int s = 0, d = 0, cc = 0; s < eLen; ) { 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); int i = (sArr[s++] & 0xff) << 16 | (sArr[s++] & 0xff) << 8 | (sArr[s++] & 0xff);
// Encode the int into four chars // Encode the int into four chars
@ -339,7 +339,7 @@ final class Base64 { //final and package-protected on purpose
// Encode even 24-bits // Encode even 24-bits
for (int s = sOff, d = 0, cc = 0; s < sOff + eLen; ) { 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); int i = (sArr[s++] & 0xff) << 16 | (sArr[s++] & 0xff) << 8 | (sArr[s++] & 0xff);
// Encode the int into four chars // Encode the int into four chars

View File

@ -196,7 +196,7 @@ public final class Strings {
/** /**
* Trim <i>all</i> whitespace from the given String: * 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 * @param str the String to check
* @return the trimmed String * @return the trimmed String
* @see java.lang.Character#isWhitespace * @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 str the String to check
* @param leadingCharacter the leading character to be trimmed * @param leadingCharacter the leading character to be trimmed
* @return the trimmed String * @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 str the String to check
* @param trailingCharacter the trailing character to be trimmed * @param trailingCharacter the trailing character to be trimmed
* @return the trimmed String * @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. * another string.
* @param inString String to examine * @param inString String to examine
* @param oldPattern String to replace * @param oldPattern String to replace