You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2009/10/02 00:54:23 UTC

[jira] Reopened: (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 ]

Bryan Duxbury reopened THRIFT-477:
----------------------------------

      Assignee:     (was: Bryan Duxbury)

I rolled back the changes.

> 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.