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)