Avoid unnecessary logger serialization

See gh-32459
This commit is contained in:
Juergen Hoeller 2024-12-12 19:34:55 +01:00
parent 5e549da75f
commit 2dbad8de41
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -99,7 +99,7 @@ public class ProxyFactoryBean extends ProxyCreatorSupport
public static final String GLOBAL_SUFFIX = "*";
protected final Log logger = LogFactory.getLog(getClass());
private static final Log logger = LogFactory.getLog(ProxyFactoryBean.class);
@Nullable
private String[] interceptorNames;

View File

@ -186,7 +186,7 @@ public abstract class SharedEntityManagerCreator {
@SuppressWarnings("serial")
private static class SharedEntityManagerInvocationHandler implements InvocationHandler, Serializable {
private final Log logger = LogFactory.getLog(getClass());
private static final Log logger = LogFactory.getLog(SharedEntityManagerInvocationHandler.class);
private final EntityManagerFactory targetFactory;