svn commit: r1792959 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1792959 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java

jleroux@apache.org
Author: jleroux
Date: Thu Apr 27 21:23:31 2017
New Revision: 1792959

URL: http://svn.apache.org/viewvc?rev=1792959&view=rev
Log:
No functional change, fixes indentation after r1792939

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java?rev=1792959&r1=1792958&r2=1792959&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilCodec.java Thu Apr 27 21:23:31 2017
@@ -132,15 +132,15 @@ public class UtilCodec {
                 .toFactory();
     }
 
-        public static class XmlEncoder implements SimpleEncoder {
-            private static final char[] IMMUNE_XML = {',', '.', '-', '_', ' '};
-            private XMLEntityCodec xmlCodec = new XMLEntityCodec();
-            public String encode(String original) {
-                if (original == null) {
-                    return null;
-                }
-                return xmlCodec.encode(IMMUNE_XML, original);
+    public static class XmlEncoder implements SimpleEncoder {
+        private static final char[] IMMUNE_XML = {',', '.', '-', '_', ' '};
+        private XMLEntityCodec xmlCodec = new XMLEntityCodec();
+        public String encode(String original) {
+            if (original == null) {
+                return null;
             }
+            return xmlCodec.encode(IMMUNE_XML, original);
+        }
         /**
          * @deprecated Use {@link #sanitize(String,String)} instead
          */