reta commented on a change in pull request #745:
URL: https://github.com/apache/cxf/pull/745#discussion_r576168307
##########
File path: core/src/main/java/org/apache/cxf/catalog/OASISCatalogManager.java
##########
@@ -100,10 +100,10 @@ public String getResolvedEntity(String publicId, String
systemId) {
String s = super.getResolvedEntity(publicId, systemId);
if (s != null && s.startsWith("classpath:")) {
try {
- URIResolver r = new URIResolver(s);
- if (r.isResolved()) {
- r.getInputStream().close();
- return r.getURL().toExternalForm();
+ try (URIResolver r = new URIResolver(s)) {
Review comment:
No, not really in this case, simplified, thanks!
----------------------------------------------------------------
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]