[jira] [Created] (FLINK-3196) InputStream should be closed in EnvironmentInformation#getRevisionInformation()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-3196) InputStream should be closed in EnvironmentInformation#getRevisionInformation()

Shang Yuanchun (Jira)
Ted Yu created FLINK-3196:
-----------------------------

             Summary: InputStream should be closed in EnvironmentInformation#getRevisionInformation()
                 Key: FLINK-3196
                 URL: https://issues.apache.org/jira/browse/FLINK-3196
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
      InputStream propFile = EnvironmentInformation.class.getClassLoader().getResourceAsStream(".version.properties");
      if (propFile != null) {
        Properties properties = new Properties();
        properties.load(propFile);
{code}
propFile should be closed upon leaving the method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)