reta commented on a change in pull request #745:
URL: https://github.com/apache/cxf/pull/745#discussion_r576173789



##########
File path: 
tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxb/CustomizationParser.java
##########
@@ -118,8 +118,9 @@ private void addBinding(String bindingFile) throws 
XMLStreamException {
 
         Element root = null;
         try {
-            URIResolver resolver = new URIResolver(bindingFile);
-            root = 
StaxUtils.read(resolver.getInputStream()).getDocumentElement();
+            try (URIResolver resolver = new URIResolver(bindingFile)) {

Review comment:
       Tried to address all of them, there are some places where I had to keep 
nested`try` structures since the exiting behavior (throw or return) would 
change.




----------------------------------------------------------------
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]


Reply via email to