From b9c3ffb26afeff02ab978c8e42f9a0fd242cdd51 Mon Sep 17 00:00:00 2001 From: "lingming.yb" Date: Tue, 24 Dec 2013 10:43:38 +0800 Subject: [PATCH] format --- okhttp/src/main/java/com/squareup/okhttp/Connection.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/okhttp/src/main/java/com/squareup/okhttp/Connection.java b/okhttp/src/main/java/com/squareup/okhttp/Connection.java index f89930bb7..a30484515 100644 --- a/okhttp/src/main/java/com/squareup/okhttp/Connection.java +++ b/okhttp/src/main/java/com/squareup/okhttp/Connection.java @@ -105,8 +105,7 @@ public final class Connection implements Closeable { if (route.address.sslSocketFactory != null) { upgradeToTls(tunnelRequest); - } - else{ + } else { streamWrapper(); } } @@ -329,8 +328,8 @@ public final class Connection implements Closeable { } } } - - private void streamWrapper(){ + + private void streamWrapper() throws IOException { //Use MTU-sized buffers to send fewer packets. int mtu = Platform.get().getMtu(socket); if (mtu < 1024) mtu = 1024;