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

Use primitive fields in generated getters & setters in Java code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.2
    • 1.9.0
    • None

    Description

      Currently, for primitive types (such as int, long, etc) generated getters and setters return and accept java.lang.* boxed (while fields actually holds primitive values). This is inefeccient and produces code boilerplate.

      Changed this behaviour in pull request:
      https://github.com/apache/avro/pull/243

      Attachments

        Activity

          People

            dguitelson Daniil Gitelson
            dguitelson Daniil Gitelson
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m