Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1149

Add all-args constructor to generated class definitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.2
    • java
    • None

    Description

      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.

      Attachments

        1. AVRO-1149.patch
          2 kB
          Gabriel Reid

        Activity

          People

            gabriel.reid Gabriel Reid
            gabriel.reid Gabriel Reid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: