thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsirois <>
Subject [GitHub] thrift pull request #1081: THRIFT-3854 add a way in java to clear TFramedTra...
Date Thu, 26 Jan 2017 20:48:49 GMT
Github user jsirois commented on a diff in the pull request:
    --- Diff: lib/java/src/org/apache/thrift/transport/ ---
    @@ -164,6 +166,10 @@ public void consumeBuffer(int len) {
    +  public void clear() {
    +    readBuffer = new AutoExpandingBufferReadTransport(initialBufferCapacity, 1.5);
    --- End diff --
    It would be nice to share the initialization code on line 110 above in the constructor
- consider factoring out a factory or calling reset from the constructor to initialize `readBuffer`
for the 1st time.

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 or file a JIRA ticket
with INFRA.

View raw message