Uploaded image for project: 'Apache Blur'
  1. Apache Blur
  2. BLUR-389

InputStream may not be closed upon return from EnqueueDataAsync#loadWords()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.2.4
    • None
    • None

    Description

          InputStream inputStream = EnqueueDataAsync.class.getResourceAsStream("words.txt");
          BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
          String word;
          while ((word = reader.readLine()) != null) {
            words.add(word.trim());
      

      inputStream should be closed 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: