You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2019/12/27 14:08:24 UTC

[groovy] 02/02: ConcurrentReaderHashMap#putAll: Make content of while statement match indentation.

This is an automated email from the ASF dual-hosted git repository.

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

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

    ConcurrentReaderHashMap#putAll: Make content of while statement match indentation.
---
 .../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);
       }
+    }
   }