From 9db6ccaa4b4e3183152a33dc5486cd83c81ddc44 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 14 Jan 2014 17:44:23 +0100 Subject: [PATCH] DATACMNS-412 - Fixed potential classloader leak. Turned the static cache of RepositoryInformations in RepositoryFactorySupport into a non-static one to avoid the instance from potentially surviving redeployments in web app scenarios. --- .../data/repository/core/support/RepositoryFactorySupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java index 78794526a..236c4aa64 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java @@ -52,7 +52,7 @@ import org.springframework.util.ObjectUtils; */ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware { - private static final Map REPOSITORY_INFORMATION_CACHE = new HashMap(); + private final Map REPOSITORY_INFORMATION_CACHE = new HashMap(); private final List postProcessors = new ArrayList(); private QueryLookupStrategy.Key queryLookupStrategyKey;