|
|
|
@ -368,7 +368,7 @@ public abstract class UriUtils {
@@ -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 {
@@ -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() : ""); |
|
|
|
|