summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch/src
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2019-01-02 17:17:38 +0530
committerezhil <ezhrajam@in.ibm.com>2019-01-02 17:17:50 +0530
commit8e45eff530455eeff4f5c234ebe4226a493e10d3 (patch)
tree8145251232bab2459f687e902ad703f523af6c69 /auth/auth-batch/src
parent850788c053064409ad07b2b313396c674b57ac4b (diff)
Fixed major sonar issues in MonthData.java
Change-Id: Ia5c580f5c709f8254e5a425f7282276f2ee0e7f4 Issue-ID: AAF-686 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'auth/auth-batch/src')
-rw-r--r--auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/MonthData.java11
1 files changed, 6 insertions, 5 deletions
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> 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> {