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

Takashi Yonebayashi updated THRIFT-1251:
----------------------------------------

    Attachment: THRIFT-1251.patch

The attached patch adds comments to the variable declarations.  

Example:
{noformat}
public short field1; // required
public int field2; // optional
{noformat}

> Generated java code should indicate which fields are required and which are 
> optional
> ------------------------------------------------------------------------------------
>
>                 Key: THRIFT-1251
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1251
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler
>            Reporter: Takashi Yonebayashi
>            Assignee: Bryan Duxbury
>            Priority: Trivial
>         Attachments: THRIFT-1251.patch
>
>
> It would make things easier to use if one could look at the generated code 
> and quickly tell which fields are optional and which are required.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to