summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-11-06 13:38:40 +0000
committerGerrit Code Review <gerrit@onap.org>2019-11-06 13:38:40 +0000
commitdba91fb2b1a12b34691840af97cfbb5fd28917d7 (patch)
tree96d272541422f1604786591f99421bc63eff67b9
parent3b28b4348ab1fa845cfb607c5bdb915516e83c98 (diff)
parentcad86409623effb38a3f3028edffddc2144cee2d (diff)
Merge "Examples.java-Extract the assignment out of the expression"
-rw-r--r--cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java
index 65202940..308fcc80 100644
--- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java
+++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java
@@ -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");