diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/DummyFactory.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/DummyFactory.java index 2cf683a7c5f..f56303d067f 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/DummyFactory.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/DummyFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2023 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. @@ -102,6 +102,7 @@ public class DummyFactory } @Override + @SuppressWarnings("deprecation") public void setBeanFactory(BeanFactory beanFactory) { this.beanFactory = (AutowireCapableBeanFactory) beanFactory; this.beanFactory.applyBeanPostProcessorsBeforeInitialization(this.testBean, this.beanName); @@ -155,6 +156,7 @@ public class DummyFactory * @see FactoryBean#getObject() */ @Override + @SuppressWarnings("deprecation") public Object getObject() throws BeansException { if (isSingleton()) { return this.testBean; diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/DummyFactory.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/DummyFactory.java index 9e3d8b6511a..2b531ce2d55 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/DummyFactory.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/DummyFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2023 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. @@ -103,6 +103,7 @@ public class DummyFactory } @Override + @SuppressWarnings("deprecation") public void setBeanFactory(BeanFactory beanFactory) { this.beanFactory = (AutowireCapableBeanFactory) beanFactory; this.beanFactory.applyBeanPostProcessorsBeforeInitialization(this.testBean, this.beanName); @@ -156,6 +157,7 @@ public class DummyFactory * @see FactoryBean#getObject() */ @Override + @SuppressWarnings("deprecation") public Object getObject() throws BeansException { if (isSingleton()) { return this.testBean;