Examples.java-Extract the assignment out of the expression 82/97982/2
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Tue, 5 Nov 2019 20:17:16 +0000 (01:47 +0530)
committerJonathan Gathman <jonathan.gathman@att.com>
Wed, 6 Nov 2019 13:33:17 +0000 (13:33 +0000)
Issue-ID: AAF-876
Change-Id: I0f29f977089f6f8e0a5a732cf751a894c4e63bc4
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java

index 6520294..308fcc8 100644 (file)
@@ -302,15 +302,16 @@ public class Examples {
         Ns ns;
 
         Nss nss = new Nss();
-        nss.getNs().add(ns = new Nss.Ns());
+        ns = new Nss.Ns();
+        nss.getNs().add(ns);
         ns.setName("org.osaaf.myns");
         ns.getResponsible().add("ab1234@people.osaaf.org");
         ns.getResponsible().add("cd5678@people.osaaf.org");
         ns.getAdmin().add("zy9876@people.osaaf.org");
         ns.getAdmin().add("xw5432@people.osaaf.org");
         ns.setDescription("This is my Namespace to set up");
-
-        nss.getNs().add(ns = new Nss.Ns());
+        ns = new Nss.Ns();
+        nss.getNs().add(ns);
         ns.setName("org.osaaf.myOtherNs");
         ns.getResponsible().add("ab1234@people.osaaf.org");
         ns.getResponsible().add("cd5678@people.osaaf.org");