Browse Source

UriUtils#encodUriVariables methods are now public

pull/1584/merge
Rossen Stoyanchev 7 years ago
parent
commit
ef39092b3b
  1. 4
      spring-web/src/main/java/org/springframework/web/util/UriUtils.java

4
spring-web/src/main/java/org/springframework/web/util/UriUtils.java

@ -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() : "");

Loading…
Cancel
Save