Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java

Issue 2377003002: Format all Java in WebRTC. (Closed)
Patch Set: Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java
index ee2a4ab2c5245016b0f51f176d5fc38fa4da391b..1f0b8bb78ee64529d7c0d81f7041b88ef56c401b 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java
@@ -38,8 +38,7 @@ public class AsyncHttpURLConnection {
void onHttpComplete(String response);
}
- public AsyncHttpURLConnection(String method, String url, String message,
- AsyncHttpEvents events) {
+ public AsyncHttpURLConnection(String method, String url, String message, AsyncHttpEvents events) {
this.method = method;
this.url = url;
this.message = message;
@@ -61,8 +60,7 @@ public class AsyncHttpURLConnection {
private void sendHttpMessage() {
try {
- HttpURLConnection connection =
- (HttpURLConnection) new URL(url).openConnection();
+ HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
byte[] postData = new byte[0];
if (message != null) {
postData = message.getBytes("UTF-8");
@@ -96,8 +94,8 @@ public class AsyncHttpURLConnection {
// Get response.
int responseCode = connection.getResponseCode();
if (responseCode != 200) {
- events.onHttpError("Non-200 response to " + method + " to URL: "
- + url + " : " + connection.getHeaderField(null));
+ events.onHttpError("Non-200 response to " + method + " to URL: " + url + " : "
+ + connection.getHeaderField(null));
connection.disconnect();
return;
}
@@ -109,8 +107,7 @@ public class AsyncHttpURLConnection {
} catch (SocketTimeoutException e) {
events.onHttpError("HTTP " + method + " to " + url + " timeout");
} catch (IOException e) {
- events.onHttpError("HTTP " + method + " to " + url + " error: "
- + e.getMessage());
+ events.onHttpError("HTTP " + method + " to " + url + " error: " + e.getMessage());
}
}

Powered by Google App Engine
This is Rietveld 408576698