HHH-14734 No good reason tu use TypeCache(s) with WithInlineExpunction

This commit is contained in:
Sanne Grinovero 2021-06-25 18:23:24 +01:00 committed by Sanne Grinovero
parent e782ddf8f9
commit f60d8bcd12
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ public final class ByteBuddyState {
ByteBuddyState(ClassFileVersion classFileVersion) {
this.byteBuddy = new ByteBuddy( classFileVersion ).with( TypeValidation.DISABLED );
this.proxyCache = new TypeCache.WithInlineExpunction<TypeCache.SimpleKey>( TypeCache.Sort.WEAK );
this.basicProxyCache = new TypeCache.WithInlineExpunction<TypeCache.SimpleKey>( TypeCache.Sort.WEAK );
this.proxyCache = new TypeCache( TypeCache.Sort.WEAK );
this.basicProxyCache = new TypeCache( TypeCache.Sort.WEAK );
if ( System.getSecurityManager() != null ) {
this.classRewriter = new SecurityManagerClassRewriter();