You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/03/29 10:39:00 UTC
[jira] [Commented] (AVRO-2700) Change Java Collection Usage
[ https://issues.apache.org/jira/browse/AVRO-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070267#comment-17070267 ]
ASF subversion and git services commented on AVRO-2700:
-------------------------------------------------------
Commit da132659c4676ede53aabb66ebd943b8232a18f3 in avro's branch refs/heads/master from belugabehr
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=da13265 ]
AVRO-2700: Change Java Collection Usage (#780)
* AVRO-2700: Change Java Collection Usage
* Apply spotless
Co-authored-by: David Mollitor <dm...@apache.org>
> 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
>
> * 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)