You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2016 the original author or authors.
2
+
* Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -182,6 +182,9 @@ public void setApplicationContext(ApplicationContext applicationContext) {
182
182
183
183
@Override
184
184
publicvoidafterSingletonsInstantiated() {
185
+
// Remove resolved singleton classes from cache
186
+
this.nonAnnotatedClasses.clear();
187
+
185
188
if (this.applicationContext == null) {
186
189
// Not running in an ApplicationContext -> register tasks early...
0 commit comments