You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Fokko Driesprong (Jira)" <ji...@apache.org> on 2020/03/29 10:39:00 UTC
[jira] [Resolved] (AVRO-2700) Change Java Collection Usage
[ https://issues.apache.org/jira/browse/AVRO-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fokko Driesprong resolved AVRO-2700.
------------------------------------
Fix Version/s: 1.10.0
Resolution: Fixed
> Change Java Collection Usage
> ----------------------------
>
> Key: AVRO-2700
> URL: https://issues.apache.org/jira/browse/AVRO-2700
> Project: Apache Avro
> Issue Type: Improvement
> Reporter: David Mollitor
> Assignee: David Mollitor
> Priority: Minor
> Fix For: 1.10.0
>
>
> * Use {{HashMap}} instead of {{LinkedHashMap}} when there's not iteration of the collection involved. Other there is needless overhead of maintaining order.
> * Use {{Collections.emptyMap}} when an empty map is required
> * Use {{computeIfAbsent}}
> * Other related minor cleanup
--
This message was sent by Atlassian Jira
(v8.3.4#803005)