You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/01/13 18:18:39 UTC

[jira] [Created] (GORA-458) DataOutputStream is not closed in BinaryEncoder#encodeShort()

Ted Yu created GORA-458:
---------------------------

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