UriUtils#encodUriVariables methods are now public
This commit is contained in:
parent
7964360f79
commit
ef39092b3b
|
|
@ -368,7 +368,7 @@ public abstract class UriUtils {
|
|||
* @return the encoded String
|
||||
* @since 5.0
|
||||
*/
|
||||
static Map<String, String> encodeUriVariables(Map<String, ?> uriVariables) {
|
||||
public static Map<String, String> encodeUriVariables(Map<String, ?> uriVariables) {
|
||||
Map<String, String> result = new LinkedHashMap<>(uriVariables.size());
|
||||
uriVariables.forEach((key, value) -> {
|
||||
String stringValue = (value != null ? value.toString() : "");
|
||||
|
|
@ -384,7 +384,7 @@ public abstract class UriUtils {
|
|||
* @return the encoded String
|
||||
* @since 5.0
|
||||
*/
|
||||
static Object[] encodeUriVariables(Object... uriVariables) {
|
||||
public static Object[] encodeUriVariables(Object... uriVariables) {
|
||||
return Arrays.stream(uriVariables)
|
||||
.map(value -> {
|
||||
String stringValue = (value != null ? value.toString() : "");
|
||||
|
|
|
|||
Loading…
Reference in New Issue