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

Unified Diff: webrtc/base/java/src/org/webrtc/Logging.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/Logging.java
diff --git a/webrtc/base/java/src/org/webrtc/Logging.java b/webrtc/base/java/src/org/webrtc/Logging.java
index 7d073b35d58b37dc80e6ea1351ff5f239794a42b..736dcf0d4329443b4cdd7398913a92b2e6ca815b 100644
--- a/webrtc/base/java/src/org/webrtc/Logging.java
+++ b/webrtc/base/java/src/org/webrtc/Logging.java
@@ -57,12 +57,10 @@ public class Logging {
TraceLevel(int level) {
this.level = level;
}
- };
+ }
// Keep in sync with webrtc/base/logging.h:LoggingSeverity.
- public enum Severity {
- LS_SENSITIVE, LS_VERBOSE, LS_INFO, LS_WARNING, LS_ERROR, LS_NONE
- };
+ public enum Severity { LS_SENSITIVE, LS_VERBOSE, LS_INFO, LS_WARNING, LS_ERROR, LS_NONE }
public static void enableLogThreads() {
if (!nativeLibLoaded) {
@@ -74,8 +72,8 @@ public class Logging {
public static void enableLogTimeStamps() {
if (!nativeLibLoaded) {
- fallbackLogger.log(Level.WARNING,
- "Cannot enable log timestamps because native lib not loaded.");
+ fallbackLogger.log(
+ Level.WARNING, "Cannot enable log timestamps because native lib not loaded.");
return;
}
nativeEnableLogTimeStamps();
@@ -84,8 +82,7 @@ public class Logging {
// Enable tracing to |path| of messages of |levels|.
// On Android, use "logcat:" for |path| to send output there.
// Note: this function controls the output of the WEBRTC_TRACE() macros.
- public static synchronized void enableTracing(
- String path, EnumSet<TraceLevel> levels) {
+ public static synchronized void enableTracing(String path, EnumSet<TraceLevel> levels) {
if (!nativeLibLoaded) {
fallbackLogger.log(Level.WARNING, "Cannot enable tracing because native lib not loaded.");
return;
@@ -178,8 +175,7 @@ public class Logging {
return sw.toString();
}
- private static native void nativeEnableTracing(
- String path, int nativeLevels);
+ private static native void nativeEnableTracing(String path, int nativeLevels);
private static native void nativeEnableLogToDebugOutput(int nativeSeverity);
private static native void nativeEnableLogThreads();
private static native void nativeEnableLogTimeStamps();

Powered by Google App Engine
This is Rietveld 408576698