flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-3196) InputStream should be closed in EnvironmentInformation#getRevisionInformation()
Date Thu, 14 Jan 2016 17:35:39 GMT

     [ https://issues.apache.org/jira/browse/FLINK-3196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated FLINK-3196:
--------------------------
    Description: 
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.

  was:
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.


> 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)

Mime
View raw message