You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/09/12 19:51:05 UTC

[commons-configuration] 04/05: Add comment about resource management.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git

commit be4db737abe70be8989aa2169d27efe523cdbc18
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 12 15:49:28 2019 -0400

    Add comment about resource management.
---
 .../java/org/apache/commons/configuration2/resolver/CatalogResolver.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
index e0ed0ef..87081fb 100644
--- a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
+++ b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
@@ -167,6 +167,7 @@ public class CatalogResolver implements EntityResolver
      * @return An InputSource for the mapped identifier, or null.
      * @throws SAXException if an error occurs.
      */
+    @SuppressWarnings("resource") // InputSource wraps an InputStream.
     @Override
     public InputSource resolveEntity(final String publicId, final String systemId)
             throws SAXException