beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-2987) Close of InputStream should be placed in finally block
Date Mon, 25 Sep 2017 19:34:00 GMT
Ted Yu created BEAM-2987:
----------------------------

             Summary: Close of InputStream should be placed in finally block
                 Key: BEAM-2987
                 URL: https://issues.apache.org/jira/browse/BEAM-2987
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-extensions
            Reporter: Ted Yu
            Assignee: Reuven Lax
            Priority: Minor


In TikaSource#TikaReader#start():
{code}
            try {
              parser.parse(is, tikaHandler, tikaMetadata, context);
              is.close();
{code}
The close() should be in finally block.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message