Skip to content

Commit ef39092

Browse files
committed
UriUtils#encodUriVariables methods are now public
1 parent 7964360 commit ef39092

File tree

1 file changed

+2
-2
lines changed
  • spring-web/src/main/java/org/springframework/web/util

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public static String extractFileExtension(String path) {
368368
* @return the encoded String
369369
* @since 5.0
370370
*/
371-
static Map<String, String> encodeUriVariables(Map<String, ?> uriVariables) {
371+
public static Map<String, String> encodeUriVariables(Map<String, ?> uriVariables) {
372372
Map<String, String> result = new LinkedHashMap<>(uriVariables.size());
373373
uriVariables.forEach((key, value) -> {
374374
String stringValue = (value != null ? value.toString() : "");
@@ -384,7 +384,7 @@ static Map<String, String> encodeUriVariables(Map<String, ?> uriVariables) {
384384
* @return the encoded String
385385
* @since 5.0
386386
*/
387-
static Object[] encodeUriVariables(Object... uriVariables) {
387+
public static Object[] encodeUriVariables(Object... uriVariables) {
388388
return Arrays.stream(uriVariables)
389389
.map(value -> {
390390
String stringValue = (value != null ? value.toString() : "");

0 commit comments

Comments
 (0)