mirror of https://github.com/grpc/grpc-java.git
okhttp: fix unreported exception (#9044)
This commit is contained in:
parent
432fcf4c98
commit
db36905abf
|
|
@ -433,7 +433,8 @@ public final class HttpUrl {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void canonicalize(Buffer out, String input, int pos, int limit,
|
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.
|
Buffer utf8Buffer = null; // Lazily allocated.
|
||||||
int codePoint;
|
int codePoint;
|
||||||
for (int i = pos; i < limit; i += Character.charCount(codePoint)) {
|
for (int i = pos; i < limit; i += Character.charCount(codePoint)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue