From 8642116a5232e35904aa82913e5f15157ffbb298 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Thu, 31 Oct 2019 10:33:27 +0530 Subject: CredDetail.java-extract the assignments Issue-ID: AAF-876 Change-Id: I04be0ee559445ac8b5bbd8db386ae94189a3966a Signed-off-by: Thugutla sailakshmi --- .../src/main/java/org/onap/aaf/auth/gui/pages/CredDetail.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'auth/auth-gui/src/main/java') 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> 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); } -- cgit 1.2.3-korg