Suppress serialization warnings

This commit suppresses serialization warnings triggered by the upgrade
of javac from 17 to 23.

See gh-34220
This commit is contained in:
Sébastien Deleuze
2025-01-08 18:38:48 +01:00
parent b85a76f983
commit 483985b173
5 changed files with 17 additions and 2 deletions

View File

@@ -79,24 +79,28 @@ public class AdvisedSupport extends ProxyConfig implements Advised {
/** Package-protected to allow direct access for efficiency. */
@SuppressWarnings("serial")
TargetSource targetSource = EMPTY_TARGET_SOURCE;
/** Whether the Advisors are already filtered for the specific target class. */
private boolean preFiltered = false;
/** The AdvisorChainFactory to use. */
@SuppressWarnings("serial")
private AdvisorChainFactory advisorChainFactory = DefaultAdvisorChainFactory.INSTANCE;
/**
* Interfaces to be implemented by the proxy. Held in List to keep the order
* of registration, to create JDK proxy with specified order of interfaces.
*/
@SuppressWarnings("serial")
private List<Class<?>> interfaces = new ArrayList<>();
/**
* List of Advisors. If an Advice is added, it will be wrapped
* in an Advisor before being added to this List.
*/
@SuppressWarnings("serial")
private List<Advisor> advisors = new ArrayList<>();
/**
@@ -105,6 +109,7 @@ public class AdvisedSupport extends ProxyConfig implements Advised {
* @since 6.0.10
* @see #reduceToAdvisorKey
*/
@SuppressWarnings("serial")
private List<Advisor> advisorKey = this.advisors;
/** Cache with Method as key and advisor chain List as value. */

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.
@@ -69,6 +69,7 @@ public abstract class AbstractBeanFactoryBasedTargetSource implements TargetSour
* BeanFactory that owns this TargetSource. We need to hold onto this
* reference so that we can create new prototype instances as necessary.
*/
@SuppressWarnings("serial")
private @Nullable BeanFactory beanFactory;