From 9f890296feed36d09c05eea3f0064a1b8b54f260 Mon Sep 17 00:00:00 2001 From: esobmar Date: Wed, 26 Sep 2018 11:58:31 +0100 Subject: Fix DailyLatencyReport Vulnerabilities Change-Id: I2edbb6b3d9d0375bed9e9af74a4678b7bc53c53c Signed-off-by: Mariusz Sobucki Issue-ID: DMAAP-775 --- .../org/onap/dmaap/datarouter/reports/DailyLatencyReport.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'datarouter-prov/src') diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java index f1e0f7cc..2f08b176 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java @@ -70,11 +70,9 @@ public class DailyLatencyReport extends ReportBase { " where EVENT_TIME >= ? and EVENT_TIME <= ?"; private class Job { - - public long pubtime = 0; - public long clen = 0; - public List deltime = new ArrayList(); - + private long pubtime = 0; + private long clen = 0; + private List deltime = new ArrayList<>(); public long minLatency() { long n = deltime.isEmpty() ? 0 : Long.MAX_VALUE; for (Long l : deltime) { -- cgit 1.2.3-korg