Improved: Remove unused ‘StringUtil#strToMap’ overload
(OFBIZ-11014) Make the other overload which is only used internally private. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859925 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -206,16 +206,6 @@ public class StringUtil {
|
||||
return strToMap(str, "|", trim);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user