From 7e966914050e66219689001ff4ab601a49eef0ac Mon Sep 17 00:00:00 2001 From: Instrumental Date: Fri, 7 Sep 2018 13:43:23 -0500 Subject: Mass whitespace changes (Style Warnings) Issue-ID: AAF-473 Change-Id: Ia1b3825a527bd56299949b5962bb9354dffbeef8 Signed-off-by: Instrumental --- .../main/java/org/onap/aaf/misc/xgen/CacheGen.java | 8 ++-- .../src/main/java/org/onap/aaf/misc/xgen/XGen.java | 38 +++++++-------- .../java/org/onap/aaf/misc/xgen/html/HTML4Gen.java | 4 +- .../java/org/onap/aaf/misc/xgen/html/HTML5Gen.java | 4 +- .../java/org/onap/aaf/misc/xgen/html/HTMLGen.java | 24 +++++----- .../java/org/onap/aaf/misc/xgen/html/Imports.java | 6 +-- .../java/org/onap/aaf/misc/xgen/html/JSGen.java | 54 +++++++++++----------- 7 files changed, 69 insertions(+), 69 deletions(-) (limited to 'misc/xgen') diff --git a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/CacheGen.java b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/CacheGen.java index 3edf8b60..eb58fc25 100644 --- a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/CacheGen.java +++ b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/CacheGen.java @@ -71,7 +71,7 @@ public abstract class CacheGen> { } public void replay(State state, Trans trans,Writer w, String theme) throws IOException, APIException { - if(thematic!=null) { + if (thematic!=null) { theme = thematic.themeResolve(theme); } /* Theme @@ -87,7 +87,7 @@ public abstract class CacheGen> { int i=0; @SuppressWarnings("unchecked") Section[] reverse = new Section[sections.size()]; - for(Section section : sections) { + for (Section section : sections) { s = section.use(state, trans, buff); // note, doesn't change cached, only dynamic, which is created for thread int tempIndent = s.getIndent(); s.setIndent(indent); @@ -97,7 +97,7 @@ public abstract class CacheGen> { reverse[i++]=s; } - for(--i;i>=0;--i) { + for (--i;i>=0;--i) { reverse[i].back(w); } w.flush(); @@ -116,7 +116,7 @@ public abstract class CacheGen> { // Clone Dynamic to make Thread Safe Dynamic d = new Dynamic(indent,code); buff.setIndent(indent); - if(code instanceof DynamicCode) { + if (code instanceof DynamicCode) { buff.run(state,trans,Cache.Null.singleton(), (DynamicCode)code); } else { buff.run((Cache)Cache.Null.singleton(), code); diff --git a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/XGen.java b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/XGen.java index 7b0a4263..b68ad6e5 100644 --- a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/XGen.java +++ b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/XGen.java @@ -61,7 +61,7 @@ public class XGen> { } protected void prettyln(PrintWriter pw) { - if(pretty)pw.println(); + if (pretty)pw.println(); } public RT leaf(Mark mark, String tag, String ... args) { @@ -110,10 +110,10 @@ public class XGen> { back.append(tag); back.append('>'); - if(pretty) { - if(mark!=null && mark.comment!=null) { + if (pretty) { + if (mark!=null && mark.comment!=null) { int fi = forward.getIndent()*IndentPrintWriter.INDENT_MULTIPLIER; - for(int i = fi+backSB.length();i<=COMMENT_COLUMN;++i) { + for (int i = fi+backSB.length();i<=COMMENT_COLUMN;++i) { back.append(' '); } back.append(""); } forward.inc(); - if(!oneLine) { + if (!oneLine) { forward.println(); } back.println(); } - if(mark!=null)mark.spot = backStack.size(); + if (mark!=null)mark.spot = backStack.size(); backStack.push(new Back(backSB.toString(),true, false)); backSB.setLength(0); return (RT)this; @@ -143,7 +143,7 @@ public class XGen> { forward.append(tag); addAttrs(attrs); forward.append(" />"); - if(pretty) { + if (pretty) { forward.println(); } return (RT)this; @@ -157,7 +157,7 @@ public class XGen> { @SuppressWarnings("unchecked") public RT xml(String txt) { - for(int i=0; i> { @SuppressWarnings("unchecked") public RT textCR(int tabs, String txt) { - for(int i=0;i> { int size = backStack.size(); Back c; boolean println = false; - for(int i=mark==null?0:mark.spot;i> { public RT end() { Mark mark = new Mark(); mark.spot=backStack.size()-1; - if(mark.spot<0)mark.spot=0; + if (mark.spot<0)mark.spot=0; return end(mark); } public RT end(int i) { Mark mark = new Mark(); mark.spot=backStack.size()-i; - if(mark.spot<0)mark.spot=0; + if (mark.spot<0)mark.spot=0; return end(mark); } @@ -250,9 +250,9 @@ public class XGen> { } protected void addAttrs(String[] attrs) { - if(attrs!=null) { - for(String attr : attrs) { - if(attr!=null && attr.length()>0) { + if (attrs!=null) { + for (String attr : attrs) { + if (attr!=null && attr.length()>0) { forward.append(' '); String[] split = attr.split("=",2); switch(split.length) { @@ -276,7 +276,7 @@ public class XGen> { @SuppressWarnings("unchecked") public RT comment(String string) { - if(pretty) { + if (pretty) { forward.print(""); diff --git a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/html/HTML4Gen.java b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/html/HTML4Gen.java index 16ac60ae..846ab5a1 100644 --- a/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/html/HTML4Gen.java +++ b/misc/xgen/src/main/java/org/onap/aaf/misc/xgen/html/HTML4Gen.java @@ -121,13 +121,13 @@ public class HTML4Gen extends HTMLGen { // @Override // protected void importCSS(Imports imports) { -// if(imports.css.size()==1) { +// if (imports.css.size()==1) { // cssInline(imports.css.get(0)); // } else { // text("