Fix Checkstyle

This commit is contained in:
Andrew Steinborn
2019-05-26 18:14:54 -04:00
parent deeb068825
commit 4d6e836890
2 changed files with 3 additions and 3 deletions

View File

@@ -524,7 +524,6 @@ public class Metrics {
@Override
protected JsonObject getChartData() throws Exception {
JsonObject data = new JsonObject();
JsonObject values = new JsonObject();
Map<String, int[]> map = callable.call();
if (map == null || map.isEmpty()) {
@@ -547,6 +546,7 @@ public class Metrics {
// Null = skip the chart
return null;
}
JsonObject data = new JsonObject();
data.add("values", values);
return data;
}

View File

@@ -731,11 +731,11 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi
@Ignore
private boolean fromConfig;
public Metrics() {
private Metrics() {
this.fromConfig = false;
}
public Metrics(Toml toml) {
private Metrics(Toml toml) {
if (toml != null) {
this.enabled = toml.getBoolean("enabled", false);
this.id = toml.getString("id", UUID.randomUUID().toString());