#711 - Upgrade to Spring Framework 5.0.6.RELEASE.

This commit is contained in:
Greg Turnquist
2018-05-15 15:06:09 -05:00
parent 61972998ac
commit 8f15301220
2 changed files with 9 additions and 10 deletions

View File

@@ -17,8 +17,6 @@ package org.springframework.hateoas.core;
import lombok.experimental.UtilityClass;
import java.io.UnsupportedEncodingException;
import org.springframework.util.Assert;
import org.springframework.web.util.UriUtils;
@@ -26,6 +24,7 @@ import org.springframework.web.util.UriUtils;
* Utilities for URI encoding.
*
* @author Oliver Gierke
* @author Greg Turnquist
* @since 0.22
* @soundtrack Don Philippe - Between Now And Now (Between Now And Now)
*/
@@ -46,8 +45,8 @@ public class EncodingUtils {
try {
return UriUtils.encodePath(source.toString(), ENCODING);
} catch (UnsupportedEncodingException o_O) {
throw new IllegalStateException(o_O);
} catch (Throwable e) {
throw new RuntimeException(e);
}
}
@@ -63,8 +62,8 @@ public class EncodingUtils {
try {
return UriUtils.encodeQueryParam(source.toString(), ENCODING);
} catch (UnsupportedEncodingException o_O) {
throw new IllegalStateException(o_O);
} catch (Throwable e) {
throw new RuntimeException(e);
}
}
@@ -80,8 +79,8 @@ public class EncodingUtils {
try {
return UriUtils.encodeFragment(source.toString(), ENCODING);
} catch (UnsupportedEncodingException o_O) {
throw new IllegalStateException(o_O);
} catch (Throwable e) {
throw new RuntimeException(e);
}
}
}