diff options
author | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
commit | 59788b8663f1f05a95b7afbbc6d2846dae11c96a (patch) | |
tree | c3ed292df270f11157decb83827d9af4144db52d /java/src/IceUtil/XMLOutput.java | |
parent | file run.py was initially added on branch location. (diff) | |
download | ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.bz2 ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.xz ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.zip |
removed spaces after keywords
Diffstat (limited to 'java/src/IceUtil/XMLOutput.java')
-rw-r--r-- | java/src/IceUtil/XMLOutput.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/java/src/IceUtil/XMLOutput.java b/java/src/IceUtil/XMLOutput.java index 139dd600ffe..e062cd80efa 100644 --- a/java/src/IceUtil/XMLOutput.java +++ b/java/src/IceUtil/XMLOutput.java @@ -45,7 +45,7 @@ public class XMLOutput extends OutputBase public void print(String s) { - if (!_printed) + if(!_printed) { _out.print('>'); _printed = true; @@ -65,20 +65,20 @@ public class XMLOutput extends OutputBase final String allReserved = "<>'\"&"; boolean hasReserved = false; char[] arr = s.toCharArray(); - for (int i = 0; i < arr.length; i++) + for(int i = 0; i < arr.length; i++) { - if (allReserved.indexOf(arr[i]) != -1) + if(allReserved.indexOf(arr[i]) != -1) { hasReserved = true; break; } } - if (hasReserved) + if(hasReserved) { // // First convert all & to & // - if (v.indexOf('&') != -1) + if(v.indexOf('&') != -1) { v = v.replaceAll("&", "&"); } @@ -86,19 +86,19 @@ public class XMLOutput extends OutputBase // // Next convert remaining reserved characters. // - if (v.indexOf('>') != -1) + if(v.indexOf('>') != -1) { v = v.replaceAll(">", ">"); } - if (v.indexOf('<') != -1) + if(v.indexOf('<') != -1) { v = v.replaceAll("<", "<"); } - if (v.indexOf('\'') != -1) + if(v.indexOf('\'') != -1) { v = v.replaceAll("'", "'"); } - if (v.indexOf('"') != -1) + if(v.indexOf('"') != -1) { v = v.replaceAll("\"", """); } @@ -109,7 +109,7 @@ public class XMLOutput extends OutputBase public void nl() { - if (!_printed) + if(!_printed) { _out.print('>'); _printed = true; @@ -129,7 +129,7 @@ public class XMLOutput extends OutputBase // _out.print('<'); _out.print(element); - if (_sgml) + if(_sgml) { _out.print('>'); } @@ -139,11 +139,11 @@ public class XMLOutput extends OutputBase } int pos = element.indexOf(' '); - if (pos == -1) + if(pos == -1) { pos = element.indexOf('\t'); } - if (pos == -1) + if(pos == -1) { _elementStack.addFirst(element); } @@ -163,7 +163,7 @@ public class XMLOutput extends OutputBase String element = (String)_elementStack.removeFirst(); dec(); - if (!_printed) + if(!_printed) { _out.print("/>"); } |