Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Fix Checkstyle
Dieser Commit ist enthalten in:
Ursprung
deeb068825
Commit
4d6e836890
@ -524,7 +524,6 @@ public class Metrics {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected JsonObject getChartData() throws Exception {
|
protected JsonObject getChartData() throws Exception {
|
||||||
JsonObject data = new JsonObject();
|
|
||||||
JsonObject values = new JsonObject();
|
JsonObject values = new JsonObject();
|
||||||
Map<String, int[]> map = callable.call();
|
Map<String, int[]> map = callable.call();
|
||||||
if (map == null || map.isEmpty()) {
|
if (map == null || map.isEmpty()) {
|
||||||
@ -547,6 +546,7 @@ public class Metrics {
|
|||||||
// Null = skip the chart
|
// Null = skip the chart
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
JsonObject data = new JsonObject();
|
||||||
data.add("values", values);
|
data.add("values", values);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
@ -731,11 +731,11 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi
|
|||||||
@Ignore
|
@Ignore
|
||||||
private boolean fromConfig;
|
private boolean fromConfig;
|
||||||
|
|
||||||
public Metrics() {
|
private Metrics() {
|
||||||
this.fromConfig = false;
|
this.fromConfig = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Metrics(Toml toml) {
|
private Metrics(Toml toml) {
|
||||||
if (toml != null) {
|
if (toml != null) {
|
||||||
this.enabled = toml.getBoolean("enabled", false);
|
this.enabled = toml.getBoolean("enabled", false);
|
||||||
this.id = toml.getString("id", UUID.randomUUID().toString());
|
this.id = toml.getString("id", UUID.randomUUID().toString());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren