From 270ec615af06ec85f1bce91c7e35f31e3c35b54c Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Fri, 22 Mar 2019 21:51:26 +0400 Subject: [PATCH] Sync old changes --- .../client/util/SoftValuesLoadingCache.java | 11 +++++- .../main/java/mage/remote/SessionImpl.java | 4 +++ .../utils/ExportJsonGameplayDataTest.java | 34 +++++++++++-------- .../mage/game/permanent/token/Wurm1Token.java | 3 +- 4 files changed, 35 insertions(+), 17 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/util/SoftValuesLoadingCache.java b/Mage.Client/src/main/java/mage/client/util/SoftValuesLoadingCache.java index c07fafe03e..40e1550c91 100644 --- a/Mage.Client/src/main/java/mage/client/util/SoftValuesLoadingCache.java +++ b/Mage.Client/src/main/java/mage/client/util/SoftValuesLoadingCache.java @@ -9,10 +9,12 @@ import com.google.common.base.Function; import com.google.common.cache.CacheLoader; import com.google.common.cache.ForwardingLoadingCache; import com.google.common.cache.LoadingCache; +import org.apache.log4j.Logger; public class SoftValuesLoadingCache extends ForwardingLoadingCache> { private final LoadingCache> cache; + private static final Logger logger = Logger.getLogger(SoftValuesLoadingCache.class); public SoftValuesLoadingCache(CacheLoader> loader) { cache = newBuilder().softValues().build(loader); @@ -35,7 +37,14 @@ public class SoftValuesLoadingCache extends ForwardingLoadingCache