forked from MinecraftUtilities/Backend
fix map metric
This commit is contained in:
parent
8d45ba8cbd
commit
05d0aa500c
@ -18,16 +18,10 @@ public class MapMetric <A, B> extends Metric<Map<A, B>> {
|
|||||||
for (Map.Entry<A, B> entry : getValue().entrySet()) {
|
for (Map.Entry<A, B> entry : getValue().entrySet()) {
|
||||||
switch (entry.getValue().getClass().getSimpleName()) {
|
switch (entry.getValue().getClass().getSimpleName()) {
|
||||||
case "Integer":
|
case "Integer":
|
||||||
point.addField(entry.getKey().toString(), (Integer) entry.getValue());
|
point.addField(entry.getKey().toString(), (int) entry.getValue());
|
||||||
break;
|
break;
|
||||||
case "Double":
|
case "Double":
|
||||||
point.addField(entry.getKey().toString(), (Double) entry.getValue());
|
point.addField(entry.getKey().toString(), (double) entry.getValue());
|
||||||
break;
|
|
||||||
case "String":
|
|
||||||
point.addField(entry.getKey().toString(), (String) entry.getValue());
|
|
||||||
break;
|
|
||||||
case "Boolean":
|
|
||||||
point.addField(entry.getKey().toString(), (Boolean) entry.getValue());
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
point.addField(entry.getKey().toString(), entry.getValue().toString());
|
point.addField(entry.getKey().toString(), entry.getValue().toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user