coheigea commented on a change in pull request #745:
URL: https://github.com/apache/cxf/pull/745#discussion_r576610259
##########
File path:
rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
##########
@@ -729,10 +729,10 @@ static void setupClasspath(StringBuilder classPath,
ClassLoader classLoader)
private URL composeUrl(String s) {
try {
- URIResolver resolver = new URIResolver(null, s, getClass());
-
- if (resolver.isResolved()) {
- return resolver.getURI().toURL();
+ try (URIResolver resolver = new URIResolver(null, s, getClass())) {
Review comment:
Can we remove the nested try statements here as well?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]