You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by GitBox <gi...@apache.org> on 2021/02/14 20:59:44 UTC

[GitHub] [cxf] amarkevich commented on a change in pull request #745: CXF-8422: Unclosed input streams after using org.apache.cxf.tools.wsdlto.WSDLToJava

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



##########
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:
       redundant inner try




----------------------------------------------------------------
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:
users@infra.apache.org