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

Unified Diff: base/android/java/src/org/chromium/base/CommandLine.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month 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: base/android/java/src/org/chromium/base/CommandLine.java
diff --git a/base/android/java/src/org/chromium/base/CommandLine.java b/base/android/java/src/org/chromium/base/CommandLine.java
index b353ec454709cb31d9c3948f42b09dccae668af6..406f36b0698e5a9f1bca5acc437b7127e9938ce2 100644
--- a/base/android/java/src/org/chromium/base/CommandLine.java
+++ b/base/android/java/src/org/chromium/base/CommandLine.java
@@ -86,7 +86,7 @@ public abstract class CommandLine {
}
private static final AtomicReference<CommandLine> sCommandLine =
- new AtomicReference<CommandLine>();
+ new AtomicReference<CommandLine>();
/**
* @returns true if the command line has already been initialized.
@@ -149,8 +149,8 @@ public abstract class CommandLine {
char currentQuote = noQuote;
for (char c : buffer) {
// Detect start or end of quote block.
- if ((currentQuote == noQuote && (c == singleQuote || c == doubleQuote)) ||
- c == currentQuote) {
+ if ((currentQuote == noQuote && (c == singleQuote || c == doubleQuote))
+ || c == currentQuote) {
if (arg != null && arg.length() > 0 && arg.charAt(arg.length() - 1) == '\\') {
// Last char was a backslash; pop it, and treat c as a literal.
arg.setCharAt(arg.length() - 1, c);

Powered by Google App Engine
This is Rietveld 408576698