Format Java files with google-java-format

Change-Id: I6fbea77754ba61cb30e53037210afa3756268ea3
This commit is contained in:
David Pursehouse
2017-04-11 13:54:05 +09:00
parent e0ac1fc441
commit 8a20172172
2 changed files with 4 additions and 2 deletions

View File

@@ -70,7 +70,8 @@ public class ServerInfo extends JavaScriptObject {
public final native String replyTooltip() /*-{ return this.reply_tooltip; }-*/;
public final native boolean showAssigneeInChangesTable() /*-{ return this.show_assignee_in_changes_table || false; }-*/;
public final native boolean
showAssigneeInChangesTable() /*-{ return this.show_assignee_in_changes_table || false; }-*/;
public final native int updateDelay() /*-{ return this.update_delay || 0; }-*/;

View File

@@ -207,7 +207,8 @@ public class GetServerInfo implements RestReadView<ConfigResource> {
boolean hasAssigneeInIndex =
indexes.getSearchIndex().getSchema().hasField(ChangeField.ASSIGNEE);
info.showAssigneeInChangesTable =
toBoolean(cfg.getBoolean("change", "showAssigneeInChangesTable", false) && hasAssigneeInIndex);
toBoolean(
cfg.getBoolean("change", "showAssigneeInChangesTable", false) && hasAssigneeInIndex);
info.largeChange = cfg.getInt("change", "largeChange", 500);
info.replyTooltip =
Optional.ofNullable(cfg.getString("change", null, "replyTooltip")).orElse("Reply and score")