Springboot 2.0 upgrade
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / onap / so / adapters / sdnc / sdncrest / SDNCAdapterUtils.java
index 05e272f..dcb1fda 100644 (file)
@@ -64,12 +64,7 @@ public final class SDNCAdapterUtils {
         * @param pathSegment the path segment to encode
         * @return the encoded path segment
         */
-       public static String encodeURLPathSegment(String pathSegment) {
-               try {
+       public static String encodeURLPathSegment(String pathSegment) {         
                        return UriUtils.encodePathSegment(pathSegment, "UTF-8");
-               } catch (UnsupportedEncodingException e) {
-                   LOGGER.debug("Exception:", e);
-                       throw new RuntimeException("UTF-8 encoding is not supported");
-               }
        }
 }
\ No newline at end of file