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

Unclosed stream in AppInfoParser static block

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: