From 8e45eff530455eeff4f5c234ebe4226a493e10d3 Mon Sep 17 00:00:00 2001 From: ezhil Date: Wed, 2 Jan 2019 17:17:38 +0530 Subject: Fixed major sonar issues in MonthData.java Change-Id: Ia5c580f5c709f8254e5a425f7282276f2ee0e7f4 Issue-ID: AAF-686 Signed-off-by: ezhil --- .../main/java/org/onap/aaf/auth/batch/helpers/MonthData.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'auth/auth-batch/src/main/java') diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MonthData.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MonthData.java index 35ad6a10..b0499a2d 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MonthData.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MonthData.java @@ -65,16 +65,17 @@ public class MonthData { } } - public void add(int yr_mon, String target, long total, long adds, long drops) { - Set row = data.get(yr_mon); + public void add(int yrMon, String target, long total, long adds, long drops) { + Set row = data.get(yrMon); if (row==null) { - data.put(yr_mon, (row=new HashSet<>())); + row=new HashSet<>(); + data.put(yrMon, row); } row.add(new Row(target,total,adds,drops)); } - public boolean notExists(int yr_mon) { - return data.get(yr_mon)==null; + public boolean notExists(int yrMon) { + return data.get(yrMon)==null; } public static class Row implements Comparable { -- cgit 1.2.3-korg