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

rouazana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 6c8d92204875de71dbc1f9dee4f3702b9e8622d6
Author: Gautier DI FOLCO <gdifo...@linagora.com>
AuthorDate: Thu May 14 13:17:20 2020 +0200

    JAMES-3179 Fix UpdatableTickingClock thread safety issue
---
 .../src/main/java/org/apache/james/utils/UpdatableTickingClock.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/server/testing/src/main/java/org/apache/james/utils/UpdatableTickingClock.java
 
b/server/testing/src/main/java/org/apache/james/utils/UpdatableTickingClock.java
index e7f6a86..017db2d 100644
--- 
a/server/testing/src/main/java/org/apache/james/utils/UpdatableTickingClock.java
+++ 
b/server/testing/src/main/java/org/apache/james/utils/UpdatableTickingClock.java
@@ -25,6 +25,8 @@ import java.time.ZoneId;
 
 import org.apache.commons.lang3.NotImplementedException;
 
+import com.google.common.annotations.VisibleForTesting;
+
 public class UpdatableTickingClock extends Clock {
     private Instant currentInstant;
 
@@ -32,6 +34,7 @@ public class UpdatableTickingClock extends Clock {
         this.currentInstant = currentInstant;
     }
 
+    @VisibleForTesting
     public void setInstant(Instant instant) {
         currentInstant = instant;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to