diff --git a/codestyle/spotbugs-exclude.xml b/codestyle/spotbugs-exclude.xml index ca9fb089706..fe8a6dee64f 100644 --- a/codestyle/spotbugs-exclude.xml +++ b/codestyle/spotbugs-exclude.xml @@ -37,7 +37,6 @@ - diff --git a/extensions-contrib/influx-extensions/src/main/java/org/apache/druid/data/input/influx/InfluxParser.java b/extensions-contrib/influx-extensions/src/main/java/org/apache/druid/data/input/influx/InfluxParser.java index a14e5e1e1cf..42fca8b7b5d 100644 --- a/extensions-contrib/influx-extensions/src/main/java/org/apache/druid/data/input/influx/InfluxParser.java +++ b/extensions-contrib/influx-extensions/src/main/java/org/apache/druid/data/input/influx/InfluxParser.java @@ -124,7 +124,7 @@ public class InfluxParser implements Parser private Object parseNumber(String raw) { if (raw.endsWith("i")) { - return new Long(raw.substring(0, raw.length() - 1)); + return Long.valueOf(raw.substring(0, raw.length() - 1)); } return new Double(raw); @@ -161,7 +161,7 @@ public class InfluxParser implements Parser dest.put(TIMESTAMP_KEY, 0L); } else { timestamp = timestamp.substring(0, timestamp.length() - 6); - long timestampMillis = new Long(timestamp); + final long timestampMillis = Long.valueOf(timestamp); dest.put(TIMESTAMP_KEY, timestampMillis); } }