Add missing trailing comma on array declarations
Enable the CheckStyle warning and fix occurences of it. Note that the check allows leaving out the comma at the end if both the left and right curly brackets are on the same line [1]. Also re-wrap some declarations for better readability, and remove redundant "//" comments. [1] http://checkstyle.sourceforge.net/config_coding.html#ArrayTrailingComma Change-Id: Ieeb837724ac699aa5a71861c3887bcfda1941939
This commit is contained in:
@@ -151,7 +151,7 @@ public class GerritServer {
|
||||
public Void call() throws Exception {
|
||||
int rc = daemon.main(new String[] {
|
||||
"-d", site.getPath(),
|
||||
"--headless", "--console-log", "--show-stack-trace"});
|
||||
"--headless", "--console-log", "--show-stack-trace",});
|
||||
if (rc != 0) {
|
||||
System.err.println("Failed to start Gerrit daemon");
|
||||
serverStarted.reset();
|
||||
@@ -172,7 +172,7 @@ public class GerritServer {
|
||||
Init init = new Init();
|
||||
int rc = init.main(new String[] {
|
||||
"-d", tmp.getPath(), "--batch", "--no-auto-start",
|
||||
"--skip-plugins"});
|
||||
"--skip-plugins",});
|
||||
if (rc != 0) {
|
||||
throw new RuntimeException("Couldn't initialize site");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user