You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Victor Boivie (JIRA)" <ji...@apache.org> on 2014/06/21 10:52:24 UTC

[jira] [Created] (THRIFT-2585) Java option "private-members" returns void for unsetters

Victor Boivie created THRIFT-2585:
-------------------------------------

             Summary: Java option "private-members" returns void for unsetters
                 Key: THRIFT-2585
                 URL: https://issues.apache.org/jira/browse/THRIFT-2585
             Project: Thrift
          Issue Type: Bug
          Components: Java - Compiler
    Affects Versions: 0.9.1
            Reporter: Victor Boivie


>From the docs: "private-members: Members will be private, but setter methods will return 'this' like usual."

This isn't however true for "unsetters", which is a bit unconsistent since unsetters should be seen as setters as they modify the object in the exact same way.

This prevents chaining operations, such as:

MyStruct struct = new Struct(otherStruct).setSomething(5).unsetSomethingElse();







--
This message was sent by Atlassian JIRA
(v6.2#6252)