From e8fcbe29c3a2b92f4bb1865e373ef000eaab03fd Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 23 Aug 2018 00:10:27 +0200 Subject: [PATCH] HHH-12920 Fix a debug message causing an exception at debug level --- .../cache/spi/support/AbstractCachedDomainDataAccess.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/cache/spi/support/AbstractCachedDomainDataAccess.java b/hibernate-core/src/main/java/org/hibernate/cache/spi/support/AbstractCachedDomainDataAccess.java index 7bcd27b280..e4475a3a5a 100644 --- a/hibernate-core/src/main/java/org/hibernate/cache/spi/support/AbstractCachedDomainDataAccess.java +++ b/hibernate-core/src/main/java/org/hibernate/cache/spi/support/AbstractCachedDomainDataAccess.java @@ -38,9 +38,8 @@ public abstract class AbstractCachedDomainDataAccess implements CachedDomainData return storageAccess; } - @SuppressWarnings({"unchecked", "WeakerAccess"}) protected void clearCache() { - log.debugf( "Clearing cache data map [region=`%s`]" ); + log.debugf( "Clearing cache data map [region=`%s`]", region.getName() ); getStorageAccess().evictData(); }