summaryrefslogtreecommitdiffstats
path: root/misc/rosetta
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-07-12 17:01:40 -0500
committerInstrumental <jonathan.gathman@att.com>2019-07-12 17:01:46 -0500
commit1338680ef142f9a33ee32a00b07c7d2ae658cb3a (patch)
tree4b05af9107eecf94a043db218edd01ca3d3080e5 /misc/rosetta
parentd0d6604a0371457d84eceb56d9fff668e865253f (diff)
Adjust Agent for none K8s
Issue-ID: AAF-857 Change-Id: Iae6ab3800376465deb69d735d1ab38c931b46688 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'misc/rosetta')
-rw-r--r--misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/OutJson.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/OutJson.java b/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/OutJson.java
index 6c868378..2d93bb49 100644
--- a/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/OutJson.java
+++ b/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/OutJson.java
@@ -39,13 +39,13 @@ public class OutJson extends Out {
} else {
ipw = null;
}
-
+
// If it's a fragment, print first Object Name. If root Object, skip first name
Stack<LevelStack> jsonLevel = new Stack<LevelStack>();
jsonLevel.push(new LevelStack(options.length>1 && options[1]));
boolean print = true, hadData=false;
char afterName=0, beforeName=0, maybe = 0, prev=0;
-
+
int count = 0;
while ((p = prs.parse(in,p.reuse())).valid()) {
++count;
@@ -112,18 +112,20 @@ public class OutJson extends Out {
default:
print = true;
}
-
+
if (maybe!=0) {
if (ipw==null)writer.append(maybe);
else ipw.println(maybe);
maybe = 0;
}
-
- if (beforeName!=0) {
- if (ipw==null)writer.append(beforeName);
- else ipw.println(beforeName);
- beforeName = 0;
- }
+
+ // commented out unreachable code (as it is, beforeName is never
+ // assigned any value except 0
+ //if (beforeName!=0) {
+ // if (ipw==null)writer.append(beforeName);
+ // else ipw.println(beforeName);
+ // beforeName = 0;
+ //}
if (print) {
if (p.hasName()) {
writer.append('"');