You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2018/10/05 21:05:14 UTC

[thrift] branch master updated: THRIFT-4499: Remove Magic Number In TFIleTransport (#1607)

This is an automated email from the ASF dual-hosted git repository.

jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new eb31a6c  THRIFT-4499: Remove Magic Number In TFIleTransport (#1607)
eb31a6c is described below

commit eb31a6cd7e647e582c0e9efb5ad6b9e741932792
Author: Naveen Gangam <ng...@cloudera.com>
AuthorDate: Fri Oct 5 14:05:07 2018 -0700

    THRIFT-4499: Remove Magic Number In TFIleTransport (#1607)
---
 lib/java/src/org/apache/thrift/transport/TFileTransport.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/java/src/org/apache/thrift/transport/TFileTransport.java b/lib/java/src/org/apache/thrift/transport/TFileTransport.java
index 915fa73..c011c52 100644
--- a/lib/java/src/org/apache/thrift/transport/TFileTransport.java
+++ b/lib/java/src/org/apache/thrift/transport/TFileTransport.java
@@ -366,7 +366,7 @@ public class TFileTransport extends TTransport {
       currentEvent_ = new Event(new byte [256]);
 
       if(!readOnly_)
-        outputStream_ = new BufferedOutputStream(inputFile_.getOutputStream(), 8192);
+        outputStream_ = new BufferedOutputStream(inputFile_.getOutputStream());
     } catch (IOException iox) {
       throw new TTransportException(TTransportException.NOT_OPEN, iox);
     }