avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Reid (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-1149) Add all-args constructor to generated class definitions
Date Fri, 07 Sep 2012 20:46:08 GMT

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

Gabriel Reid updated AVRO-1149:
-------------------------------

    Attachment: AVRO-1149.patch

Patch to add all-args constructor to generated java files. Passes all unit tests under lang/java.
                
> Add all-args constructor to generated class definitions
> -------------------------------------------------------
>
>                 Key: AVRO-1149
>                 URL: https://issues.apache.org/jira/browse/AVRO-1149
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Gabriel Reid
>         Attachments: AVRO-1149.patch
>
>
> Having an all-args constructor (in addition to the default no-args constructor) can make
it a lot easier to work with generated Avro classes directly, as it allows setting up the
state of the class in one call.
> The included builders are useful for this, but the use of the builder can be overly verbose
and not very readable when a small number of parameters are involved.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message