You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Reiss (JIRA)" <ji...@apache.org> on 2009/05/01 23:45:31 UTC

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

    [ https://issues.apache.org/jira/browse/THRIFT-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705129#action_12705129 ] 

David Reiss commented on THRIFT-477:
------------------------------------

These methods were in the original Javabean patches, contributed by Dave Engberg.  If he doesn't want them, I'm fine with dropping them.

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