Fixed major sonar issues in MonthData.java 82/75182/1
authorezhil <ezhrajam@in.ibm.com>
Wed, 2 Jan 2019 11:47:38 +0000 (17:17 +0530)
committerezhil <ezhrajam@in.ibm.com>
Wed, 2 Jan 2019 11:47:50 +0000 (17:17 +0530)
Change-Id: Ia5c580f5c709f8254e5a425f7282276f2ee0e7f4
Issue-ID: AAF-686
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MonthData.java

index 35ad6a1..b0499a2 100644 (file)
@@ -65,16 +65,17 @@ public class MonthData {
         }
     }
     
-    public void add(int yr_mon, String target, long total, long adds, long drops) {
-        Set<Row> row = data.get(yr_mon);
+    public void add(int yrMon, String target, long total, long adds, long drops) {
+        Set<Row> 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<Row> {