mirror of
https://github.com/square/okhttp.git
synced 2025-11-26 06:43:09 +03:00
Run IntelliJ's analysis on OkHttp.
This made a few hundred suggestions, many of which are thoughtful but I'm deliberately ignoring anyway. The following fixes are good ideas.
This commit is contained in:
@@ -593,8 +593,6 @@ public final class OkHttpURLConnection extends HttpURLConnection implements Call
|
||||
@Override public Response intercept(Chain chain) throws IOException {
|
||||
try {
|
||||
return chain.proceed(chain.request());
|
||||
} catch (IOException e) {
|
||||
throw e;
|
||||
} catch (Error | RuntimeException e) {
|
||||
throw new UnexpectedException(e);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ public final class URLEncodingTest {
|
||||
@Override public void remove(Request request) throws IOException {
|
||||
}
|
||||
|
||||
@Override public void update(Response cached, Response network) throws IOException {
|
||||
@Override public void update(Response cached, Response network) {
|
||||
}
|
||||
|
||||
@Override public void trackConditionalCacheHit() {
|
||||
|
||||
Reference in New Issue
Block a user