summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch/src/main/java
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-01-02 16:23:18 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-02 16:23:18 +0000
commit9a83564f360cd25eea0b7016356fc41145f5d559 (patch)
tree6f4d14f8805a144613b7510251c4b334ff39e337 /auth/auth-batch/src/main/java
parent4369a1d6c0e12cd46676c32aedf755a95f659f14 (diff)
parent8e45eff530455eeff4f5c234ebe4226a493e10d3 (diff)
Merge "Fixed major sonar issues in MonthData.java"
Diffstat (limited to 'auth/auth-batch/src/main/java')
-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> {