okhttp: fix unreported exception (#9044)

This commit is contained in:
yifeizhuang 2022-04-01 14:38:37 -07:00 committed by GitHub
parent 432fcf4c98
commit db36905abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -433,7 +433,8 @@ public final class HttpUrl {
}
static void canonicalize(Buffer out, String input, int pos, int limit,
String encodeSet, boolean alreadyEncoded, boolean plusIsSpace, boolean asciiOnly) {
String encodeSet, boolean alreadyEncoded, boolean plusIsSpace, boolean asciiOnly)
throws Exception {
Buffer utf8Buffer = null; // Lazily allocated.
int codePoint;
for (int i = pos; i < limit; i += Character.charCount(codePoint)) {