Add junit coverage to RequestInfoBuilder class
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / onap / appc / flow / controller / utils / EscapeUtils.java
index 6f76cee..134c96a 100644 (file)
  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.appc.flow.controller.utils;
 
 import org.apache.commons.lang3.StringUtils;
 
 public class EscapeUtils {
 
-    public EscapeUtils() {
+    private EscapeUtils() {
     }
 
     public static String escapeSql(String str) {
         if (str == null) {
             return null;
         }
-        String searchList[] = new String[]{"'","\\", "\"" };
-        String replacementList[] = new String[]{ "''","\\\\" ,"\\\""};
+        String[] searchList = new String[]{"'","\\", "\"" };
+        String[] replacementList = new String[]{ "''","\\\\" ,"\\\""};
         return StringUtils.replaceEach(str,searchList, replacementList);
     }
-
 }