Return-Path: X-Original-To: apmail-gora-dev-archive@www.apache.org Delivered-To: apmail-gora-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 531791887A for ; Thu, 4 Feb 2016 07:30:50 +0000 (UTC) Received: (qmail 34797 invoked by uid 500); 4 Feb 2016 07:30:47 -0000 Delivered-To: apmail-gora-dev-archive@gora.apache.org Received: (qmail 34762 invoked by uid 500); 4 Feb 2016 07:30:47 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 34751 invoked by uid 99); 4 Feb 2016 07:30:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2016 07:30:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B8265DFC90; Thu, 4 Feb 2016 07:30:46 +0000 (UTC) From: emopers To: dev@gora.apache.org Reply-To: dev@gora.apache.org Message-ID: Subject: [GitHub] gora pull request: GORA-467 Flushing DataOutputStream before calli... Content-Type: text/plain Date: Thu, 4 Feb 2016 07:30:46 +0000 (UTC) GitHub user emopers opened a pull request: https://github.com/apache/gora/pull/55 GORA-467 Flushing DataOutputStream before calling toByteArray on the underlying ByteArrayOutputStreamFlushing DataOutputStream before calling toByteArray on the underlying ByteArrayOutputStream When a DataOutputStream instance wraps an underlying ByteArrayOutputStream instance, it is recommended to flush or close the DataOutputStream before invoking the underlying instances's toByteArray(). Also, it is a good practice to call flush/close explicitly as mentioned for example [here](http://stackoverflow.com/questions/2984538/how-to-use-bytearrayoutputstream-and-dataoutputstream-simultaneously-java). This pull request add a flush method before toByteArray. I have also added a [Jira Issue](https://issues.apache.org/jira/browse/GORA-467). You can merge this pull request into a Git repository by running: $ git pull https://github.com/emopers/gora baos_56 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/gora/pull/55.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #55 ---- commit 4858c3b3073e664ca79c459393d39b6997549103 Author: emopers Date: 2016-02-04T07:20:31Z Fixing Usage of DataOutputStream ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---