zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] enixon commented on a change in pull request #1049: ZOOKEEPER-3475 Enable Checkstyle configuration on zookeeper-server
Date Mon, 12 Aug 2019 19:55:49 GMT
enixon commented on a change in pull request #1049: ZOOKEEPER-3475 Enable Checkstyle configuration
on zookeeper-server
URL: https://github.com/apache/zookeeper/pull/1049#discussion_r313084507
 
 

 ##########
 File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/metric/AvgMinMaxCounter.java
 ##########
 @@ -50,16 +49,17 @@ public void addDataPoint(long value) {
 
     private void setMax(long value) {
         long current;
-        while (value > (current = max.get())
-                && !max.compareAndSet(current, value))
-            ;
+        while (value > (current = max.get()) && !max.compareAndSet(current, value))
{
+            // no op
 
 Review comment:
   nice :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message