groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [groovy] 01/03: Logger: Make double-checked locking thread-safe.
Date Thu, 26 Dec 2019 20:11:48 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit af3e65ab83782a43155a07feb7817e625ea22ad2
Author: Pascal Schumacher <pascalschumacher@gmx.net>
AuthorDate: Thu Dec 26 21:02:10 2019 +0100

    Logger: Make double-checked locking thread-safe.
---
 src/main/java/org/codehaus/groovy/tools/shell/util/Logger.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/tools/shell/util/Logger.java b/src/main/java/org/codehaus/groovy/tools/shell/util/Logger.java
index 2f250cf..61fe230 100644
--- a/src/main/java/org/codehaus/groovy/tools/shell/util/Logger.java
+++ b/src/main/java/org/codehaus/groovy/tools/shell/util/Logger.java
@@ -30,7 +30,7 @@ import static org.fusesource.jansi.Ansi.ansi;
  * Provides a very, very basic logging API.
  */
 public final class Logger {
-    public static IO io;
+    public static volatile IO io;
     public final String name;
 
     private Logger(final String name) {


Mime
View raw message