UriUtils#encodUriVariables methods are now public

This commit is contained in:
Rossen Stoyanchev 2017-11-03 08:21:55 -04:00
parent 7964360f79
commit ef39092b3b
1 changed files with 2 additions and 2 deletions

View File

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