Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3235

Unclosed stream in AppInfoParser static block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.10.0.0
    • None
    • None

    Description

          static {
              try {
                  Properties props = new Properties();
                  props.load(AppInfoParser.class.getResourceAsStream("/kafka/kafka-version.properties"));
                  version = props.getProperty("version", version).trim();
                  commitId = props.getProperty("commitId", commitId).trim();
      

      The stream returned by getResourceAsStream() should be closed.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: