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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.6
    • Fix Version/s: 1.7.7
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: