File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/support
spring-context/src/test/java/org/springframework/context/annotation Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
160
160
/** Map from scope identifier String to corresponding Scope. */
161
161
private final Map <String , Scope > scopes = new LinkedHashMap <>(8 );
162
162
163
+ /** Application startup metrics. **/
164
+ private ApplicationStartup applicationStartup = ApplicationStartup .DEFAULT ;
165
+
163
166
/** Map from bean name to merged RootBeanDefinition. */
164
167
private final Map <String , RootBeanDefinition > mergedBeanDefinitions = new ConcurrentHashMap <>(256 );
165
168
@@ -170,8 +173,6 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
170
173
private final ThreadLocal <Object > prototypesCurrentlyInCreation =
171
174
new NamedThreadLocal <>("Prototype beans currently in creation" );
172
175
173
- /** Application startup metrics. **/
174
- private ApplicationStartup applicationStartup = ApplicationStartup .DEFAULT ;
175
176
176
177
/**
177
178
* Create a new AbstractBeanFactory.
Original file line number Diff line number Diff line change @@ -293,6 +293,7 @@ void testSimpleScanWithDefaultFiltersAndSpecifiedBeanNameClash() {
293
293
ClassPathBeanDefinitionScanner scanner = new ClassPathBeanDefinitionScanner (context );
294
294
scanner .setIncludeAnnotationConfig (false );
295
295
scanner .scan ("org.springframework.context.annotation2" );
296
+
296
297
assertThatIllegalStateException ().isThrownBy (() -> scanner .scan (BASE_PACKAGE ))
297
298
.withMessageContaining ("myNamedDao" )
298
299
.withMessageContaining (NamedStubDao .class .getName ())
You can’t perform that action at this time.
0 commit comments