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

Unified Diff: webrtc/base/java/src/org/webrtc/ThreadUtils.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/base/java/src/org/webrtc/ThreadUtils.java
diff --git a/webrtc/base/java/src/org/webrtc/ThreadUtils.java b/webrtc/base/java/src/org/webrtc/ThreadUtils.java
index b7ec8fb1206a50c951543388c7d23745dee4c2b0..4337fd0349c1638cb6f4a31914a283b71171fbbc 100644
--- a/webrtc/base/java/src/org/webrtc/ThreadUtils.java
+++ b/webrtc/base/java/src/org/webrtc/ThreadUtils.java
@@ -42,9 +42,7 @@ public class ThreadUtils {
* Utility interface to be used with executeUninterruptibly() to wait for blocking operations
* to complete without getting interrupted..
*/
- public interface BlockingOperation {
- void run() throws InterruptedException;
- }
+ public interface BlockingOperation { void run() throws InterruptedException; }
/**
* Utility method to make sure a blocking operation is executed to completion without getting
@@ -168,7 +166,8 @@ public class ThreadUtils {
final CaughtException caughtException = new CaughtException();
final CountDownLatch barrier = new CountDownLatch(1);
handler.post(new Runnable() {
- @Override public void run() {
+ @Override
+ public void run() {
try {
result.value = callable.call();
} catch (Exception e) {
@@ -182,9 +181,8 @@ public class ThreadUtils {
// stack trace for the waiting thread as well.
if (caughtException.e != null) {
final RuntimeException runtimeException = new RuntimeException(caughtException.e);
- runtimeException.setStackTrace(concatStackTraces(
- caughtException.e.getStackTrace(),
- runtimeException.getStackTrace()));
+ runtimeException.setStackTrace(
+ concatStackTraces(caughtException.e.getStackTrace(), runtimeException.getStackTrace()));
throw runtimeException;
}
return result.value;

Powered by Google App Engine
This is Rietveld 408576698