gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GORA-458) DataOutputStream is not closed in BinaryEncoder#encodeShort()
Date Wed, 13 Jan 2016 17:40:39 GMT

    [ https://issues.apache.org/jira/browse/GORA-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15096651#comment-15096651
] 

Ted Yu commented on GORA-458:
-----------------------------

Same issue is observed in other encodeXX methods.

> DataOutputStream is not closed in BinaryEncoder#encodeShort()
> -------------------------------------------------------------
>
>                 Key: GORA-458
>                 URL: https://issues.apache.org/jira/browse/GORA-458
>             Project: Apache Gora
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> In ./gora-accumulo/src/main/java/org/apache/gora/accumulo/encoders/BinaryEncoder.java
:
> {code}
>       DataOutputStream dos = new DataOutputStream(new FixedByteArrayOutputStream(ret));
>       dos.writeShort(s);
>       return ret;
> {code}
> dos should be closed before returning.



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

Mime
View raw message