Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3773

Scanners are left unclosed in SqlExplainTest

    XMLWordPrintableJSON

Details

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

    Description

      e.g.

          String source = new Scanner(new File(testFilePath +
              "../../src/test/scala/resources/testFilter0.out"))
      

      Scanner implements AutoCloseable.
      Using try-with-resources would be a good pattern for closing the Scanners.

      Attachments

        Activity

          People

            samaitra Saikat Maitra
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: