mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-11 10:09:04 +00:00
Spring cleaning: use method references
This commit is contained in:
+1
-2
@@ -151,8 +151,7 @@ public abstract class AbstractBeanFactoryBasedTargetSourceCreator
|
||||
|
||||
// Filter out BeanPostProcessors that are part of the AOP infrastructure,
|
||||
// since those are only meant to apply to beans defined in the original factory.
|
||||
internalBeanFactory.getBeanPostProcessors().removeIf(beanPostProcessor ->
|
||||
beanPostProcessor instanceof AopInfrastructureBean);
|
||||
internalBeanFactory.getBeanPostProcessors().removeIf(AopInfrastructureBean.class::isInstance);
|
||||
|
||||
return internalBeanFactory;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user