HHH-7130 cleanup

This commit is contained in:
Brett Meyer 2013-10-09 11:38:23 -04:00
parent a9aaf87861
commit 2bb453ce35
1 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ public class CacheImpl implements CacheImplementor {
public void evictDefaultQueryRegion() { public void evictDefaultQueryRegion() {
if ( sessionFactory.getSettings().isQueryCacheEnabled() ) { if ( sessionFactory.getSettings().isQueryCacheEnabled() ) {
if ( LOG.isDebugEnabled() ) { if ( LOG.isDebugEnabled() ) {
LOG.debugf( "Evicting default query region cache." ); LOG.debug( "Evicting default query region cache." );
} }
sessionFactory.getQueryCache().clear(); sessionFactory.getQueryCache().clear();
} }
@ -264,7 +264,7 @@ public class CacheImpl implements CacheImplementor {
return; return;
} }
if ( LOG.isDebugEnabled() ) { if ( LOG.isDebugEnabled() ) {
LOG.debugf( "Evicting cache of all query regions." ); LOG.debug( "Evicting cache of all query regions." );
} }
for ( QueryCache queryCache : queryCaches.values() ) { for ( QueryCache queryCache : queryCaches.values() ) {
queryCache.clear(); queryCache.clear();