diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2019-11-06 13:03:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-06 13:03:55 +0000 |
commit | 43ee275875f09ec439a2d0aa182c79773c63f018 (patch) | |
tree | 69346edd78646766669d1f20219519876d13fd5a /auth | |
parent | 7df370cabd3a4dfed8ce471bd5a0d5625a7ae747 (diff) | |
parent | 8642116a5232e35904aa82913e5f15157ffbb298 (diff) |
Merge "CredDetail.java-extract the assignments"
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/pages/CredDetail.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/pages/CredDetail.java b/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/pages/CredDetail.java index 07aa99a6..4ad7893a 100644 --- a/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/pages/CredDetail.java +++ b/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/pages/CredDetail.java @@ -188,7 +188,8 @@ public class CredDetail extends Page { } lmu = users.get(u.getId()); if (lmu==null) { - users.put(u.getId(),lmu=new ArrayList<>()); + lmu=new ArrayList<>(); + users.put(u.getId(),lmu); } mu=null; for (Map<Integer,List<User>> xmu : lmu) { @@ -198,12 +199,14 @@ public class CredDetail extends Page { } if (mu==null) { - lmu.add(mu=new HashMap<>()); + mu=new HashMap<>(); + lmu.add(mu); } lu = mu.get(u.getType()); if (lu==null) { - mu.put(u.getType(),lu = new ArrayList<>()); + lu = new ArrayList<>(); + mu.put(u.getType(),lu); } lu.add(u); } |