groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 02/02: ConcurrentReaderHashMap#putAll: Make content of while statement match indentation.
Date Fri, 27 Dec 2019 14:11:14 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit a6265b053758e4cd93cd9c9019011fa16486b93f
Author: Pascal Schumacher <pascalschumacher@gmx.net>
AuthorDate: Thu Dec 26 21:23:04 2019 +0100

    ConcurrentReaderHashMap#putAll: Make content of while statement match indentation.
    
    (cherry picked from commit d0fdb438104ef2bbb737ac87c02c84157c54703c)
---
 .../org/codehaus/groovy/runtime/metaclass/ConcurrentReaderHashMap.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/runtime/metaclass/ConcurrentReaderHashMap.java
b/src/main/java/org/codehaus/groovy/runtime/metaclass/ConcurrentReaderHashMap.java
index 4ca393a..a99f714 100644
--- a/src/main/java/org/codehaus/groovy/runtime/metaclass/ConcurrentReaderHashMap.java
+++ b/src/main/java/org/codehaus/groovy/runtime/metaclass/ConcurrentReaderHashMap.java
@@ -763,7 +763,7 @@ public class ConcurrentReaderHashMap
     // Expand enough to hold at least n elements without resizing.
     // We can only resize table by factor of two at a time.
     // It is faster to rehash with fewer elements, so do it now.
-    while (n >= threshold)
+    while (n >= threshold) {
       rehash();
 
       for (Object o : t.entrySet()) {
@@ -772,6 +772,7 @@ public class ConcurrentReaderHashMap
           Object value = entry.getValue();
           put(key, value);
       }
+    }
   }
 
 


Mime
View raw message