Skip to content
Permalink
Browse files

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
  • Loading branch information
mthl committed May 25, 2019
1 parent b97461e commit fd7eab1d3091a60670314c3602528a66ec0c683b
Showing with 1 addition and 11 deletions.
  1. +1 −11 framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java
@@ -160,7 +160,7 @@ public static String join(Collection<?> col, CharSequence delim) {
* 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 static String join(Collection<?> col, CharSequence delim) {
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

0 comments on commit fd7eab1

Please sign in to comment.
You can’t perform that action at this time.