From b780c6f1914ce19deb3c08d21c6e08bfc0b6ce5a Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 6 Mar 2013 15:51:45 +0100 Subject: [PATCH] Silence a FindBugs warning in Utils. This isn't a real bug as unit tests aren't multi-threaded, but the analysis can't know that. --- core/src/main/java/com/google/bitcoin/core/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/bitcoin/core/Utils.java b/core/src/main/java/com/google/bitcoin/core/Utils.java index 3ebc8b46..a0ad6bbf 100644 --- a/core/src/main/java/com/google/bitcoin/core/Utils.java +++ b/core/src/main/java/com/google/bitcoin/core/Utils.java @@ -433,7 +433,7 @@ public class Utils { /** * If non-null, overrides the return value of now(). */ - public static Date mockTime; + public static volatile Date mockTime; /** * Advances (or rewinds) the mock clock by the given number of seconds.