You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2009/12/14 07:10:18 UTC

[jira] Resolved: (THRIFT-477) remove extra methods generated for collections

     [ https://issues.apache.org/jira/browse/THRIFT-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon resolved THRIFT-477.
--------------------------------

    Resolution: Invalid

resolving invalid since these changes were rolled back prior to 0.2 release

> remove extra methods generated for collections
> ----------------------------------------------
>
>                 Key: THRIFT-477
>                 URL: https://issues.apache.org/jira/browse/THRIFT-477
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Java)
>    Affects Versions: 0.1
>            Reporter: Bryan Duxbury
>            Priority: Trivial
>             Fix For: 0.2
>
>         Attachments: thrift-477.patch
>
>
> For some reason, the java generator produces a bunch of extra methods whenever you have a field of a collection type. For instance if you have a field called "my_list", then you will get a "get_my_list_size()" method in addition to the standard getter and setter. 
> Personally I find these extra methods redundant, since all they save you is a pair of parentheses. I'd prefer to just get rid of them. Does anyone out there like or use these methods?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.