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

Christophe Le Saec updated AVRO-2731:
-------------------------------------
    Status: Patch Available  (was: Open)

> Avro should not use new HashMap(targetSize) in generated code for records
> -------------------------------------------------------------------------
>
>                 Key: AVRO-2731
>                 URL: https://issues.apache.org/jira/browse/AVRO-2731
>             Project: Apache Avro
>          Issue Type: Improvement
>            Reporter: Roman Leventov
>            Assignee: Christophe Le Saec
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> [https://github.com/apache/avro/blob/4a1e3acdc09de0545cbb6bfd4554604e64ca1a35/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm#L808]
> This is improper usage of HashMap constructor. See Guava's 
> [Maps.newHashMapWithExpectedSize|[https://github.com/google/guava/blob/6e0c5b5d50a3e457ae0d787f7c9be7b48c10120b/guava/src/com/google/common/collect/Maps.java#L306-L337]]
>  code for details.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to