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

Deep copy does not need to create new instances for primitives

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.6
    • 1.7.7
    • java
    • None
    • Reviewed

    Description

      Java Boolean, Integer, Long, Float and Double are immutable so there's no need to create new instances for them in GenericData#deepCopy. Note that this optimization is already present for String.

      Attachments

        1. AVRO-1455.patch
          3 kB
          Thomas White

        Activity

          People

            tomwhite Thomas White
            tomwhite Thomas White
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: