CassandraCompositeType icon indicating copy to clipboard operation
CassandraCompositeType copied to clipboard

Closing DataOutputStream before calling toByteArray on the underlying ByteArrayOutputStream

Open emopers opened this issue 10 years ago • 0 comments

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. This pull request adds a close method before calling toByteArray().

emopers avatar Jan 12 '16 07:01 emopers