Author: mthl
Date: Sat May 25 09:18:55 2019
New Revision: 1859925
URL:
http://svn.apache.org/viewvc?rev=1859925&view=revLog:
Improved: Remove unused ‘StringUtil#strToMap’ overload
(OFBIZ-11014)
Make the other overload which is only used internally private.
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java?rev=1859925&r1=1859924&r2=1859925&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java Sat May 25 09:18:55 2019
@@ -160,7 +160,7 @@ public class StringUtil {
* and want to replace "=" to avoid clashes with parameters values in a not encoded URL, default to "="
* @return a Map of name/value pairs
*/
- public static Map<String, String> strToMap(String str, String delim, boolean trim, String pairsSeparator) {
+ private static Map<String, String> strToMap(String str, String delim, boolean trim, String pairsSeparator) {
if (str == null) {
return null;
}
@@ -207,16 +207,6 @@ public class StringUtil {
}
/**
- * Creates a Map from an encoded name/value pair string
- * @param str The string to decode and format
- * @param delim the delimiter character(s) to join on (null will split on whitespace)
- * @return a Map of name/value pairs
- */
- public static Map<String, String> strToMap(String str, String delim) {
- return strToMap(str, delim, false);
- }
-
- /**
* Creates a Map from an encoded name/value pair string
* @param str The string to decode and format
* @return a Map of name/value pairs