private URI toURI(final URL url) throws URISyntaxException { try { return url.toURI(); } catch (final URISyntaxException e) { // Work around bug where some URLs are incorrectly encoded. // This can occur when certain class loaders are utilized // to obtain URLs for resources. return URI.create(toExternalForm(url)); } }
private URI toURI(final URL url) throws URISyntaxException { try { return url.toURI(); } catch (final URISyntaxException e) { // Work around bug where some URLs are incorrectly encoded. // This can occur when certain class loaders are utilized // to obtain URLs for resources. return URI.create(toExternalForm(url)); } }
private URI toURI(final URL url) throws URISyntaxException { try { return url.toURI(); } catch (final URISyntaxException e) { // Work around bug where some URLs are incorrectly encoded. // This can occur when certain class loaders are utilized // to obtain URLs for resources. return URI.create(toExternalForm(url)); } }
private URI toURI(final URL url) throws URISyntaxException { try { return url.toURI(); } catch (final URISyntaxException e) { // Work around bug where some URLs are incorrectly encoded. // This can occur when certain class loaders are utilized // to obtain URLs for resources. return URI.create(toExternalForm(url)); } }
private URI toURI(final URL url) throws URISyntaxException { try { return url.toURI(); } catch (final URISyntaxException e) { // Work around bug where some URLs are incorrectly encoded. // This can occur when certain class loaders are utilized // to obtain URLs for resources. return URI.create(toExternalForm(url)); } }
private URI toURI(final URL url) throws URISyntaxException { try { return url.toURI(); } catch (final URISyntaxException e) { // Work around bug where some URLs are incorrectly encoded. // This can occur when certain class loaders are utilized // to obtain URLs for resources. return URI.create(toExternalForm(url)); } }
private URI toURI(final URL url) throws URISyntaxException { try { return url.toURI(); } catch (final URISyntaxException e) { // Work around bug where some URLs are incorrectly encoded. // This can occur when certain class loaders are utilized // to obtain URLs for resources. return URI.create(toExternalForm(url)); } }