Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-2987

Close of InputStream should be placed in finally block

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Invalid
    • None
    • Not applicable
    • io-java-tika
    • None

    Description

      In TikaSource#TikaReader#start():

                  try {
                    parser.parse(is, tikaHandler, tikaMetadata, context);
                    is.close();
      

      The close() should be in finally block.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: