hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "skrho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-11095) How about Null check when closing inputstream object in JavaKeyStoreProvider#() ?
Date Wed, 17 Sep 2014 00:02:09 GMT

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

skrho updated HADOOP-11095:
---------------------------
    Affects Version/s: 2.5.1
               Status: Patch Available  (was: Open)

> How about Null check when closing inputstream object in JavaKeyStoreProvider#() ?
> ---------------------------------------------------------------------------------
>
>                 Key: HADOOP-11095
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11095
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.5.1
>            Reporter: skrho
>            Priority: Minor
>         Attachments: HADOOP-11095_001.patch
>
>
> In the finally block:
>           InputStream is = pwdFile.openStream();
>           try {
>             password = IOUtils.toCharArray(is);
>           } finally {
>             is.close();
>           }
>           
> How about Null check when closing inputstream object?



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

Mime
View raw message