You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2020/01/18 03:43:00 UTC

[jira] [Created] (AVRO-2700) Change Java Collection Usage

David Mollitor created AVRO-2700:
------------------------------------

             Summary: 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


* 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)