zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Mollitor (Jira)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-3693) Use Map computeIfAbsent in AvgMinMaxCounterSet Class
Date Sat, 11 Jan 2020 16:16:00 GMT
David Mollitor created ZOOKEEPER-3693:
-----------------------------------------

             Summary: Use Map computeIfAbsent in AvgMinMaxCounterSet Class
                 Key: ZOOKEEPER-3693
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3693
             Project: ZooKeeper
          Issue Type: Improvement
            Reporter: David Mollitor
            Assignee: David Mollitor


https://github.com/apache/zookeeper/blob/27b92caefd57a60309af06ebce29e56954ca9aac/zookeeper-server/src/main/java/org/apache/zookeeper/server/metric/AvgMinMaxCounterSet.java#L41

More concise to use JDK facilities for this operation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message