Skip to content

Commit 053820c

Browse files
committed
Polishing
1 parent f662e3b commit 053820c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/BeanFactoryUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ public static <T> Map<String, T> beansOfTypeIncludingAncestors(ListableBeanFacto
294294
if (hbf.getParentBeanFactory() instanceof ListableBeanFactory) {
295295
Map<String, T> parentResult = beansOfTypeIncludingAncestors(
296296
(ListableBeanFactory) hbf.getParentBeanFactory(), type);
297-
parentResult.forEach((beanName, beanType) -> {
297+
parentResult.forEach((beanName, beanInstance) -> {
298298
if (!result.containsKey(beanName) && !hbf.containsLocalBean(beanName)) {
299-
result.put(beanName, beanType);
299+
result.put(beanName, beanInstance);
300300
}
301301
});
302302
}
@@ -343,9 +343,9 @@ public static <T> Map<String, T> beansOfTypeIncludingAncestors(
343343
if (hbf.getParentBeanFactory() instanceof ListableBeanFactory) {
344344
Map<String, T> parentResult = beansOfTypeIncludingAncestors(
345345
(ListableBeanFactory) hbf.getParentBeanFactory(), type, includeNonSingletons, allowEagerInit);
346-
parentResult.forEach((beanName, beanType) -> {
346+
parentResult.forEach((beanName, beanInstance) -> {
347347
if (!result.containsKey(beanName) && !hbf.containsLocalBean(beanName)) {
348-
result.put(beanName, beanType);
348+
result.put(beanName, beanInstance);
349349
}
350350
});
351351
}

spring-context-support/src/main/java/org/springframework/scheduling/quartz/JobDetailFactoryBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ public void afterPropertiesSet() {
199199
if (this.applicationContextJobDataKey != null) {
200200
if (this.applicationContext == null) {
201201
throw new IllegalStateException(
202-
"JobDetailBean needs to be set up in an ApplicationContext " +
203-
"to be able to handle an 'applicationContextJobDataKey'");
202+
"JobDetailBean needs to be set up in an ApplicationContext " +
203+
"to be able to handle an 'applicationContextJobDataKey'");
204204
}
205205
getJobDataMap().put(this.applicationContextJobDataKey, this.applicationContext);
206206
}

spring-core/src/main/java/org/springframework/core/type/classreading/AnnotationMetadataReadingVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si
8484
}
8585

8686
@Override
87-
public AnnotationVisitor visitAnnotation(final String desc, boolean visible) {
87+
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
8888
String className = Type.getType(desc).getClassName();
8989
this.annotationSet.add(className);
9090
return new AnnotationAttributesReadingVisitor(

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/RouterFunctionMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected void initRouterFunctions() {
111111
}
112112

113113
private List<RouterFunction<?>> routerFunctions() {
114-
List<RouterFunction<?>> functions = this.getApplicationContext()
114+
List<RouterFunction<?>> functions = obtainApplicationContext()
115115
.getBeanProvider(RouterFunction.class)
116116
.orderedStream()
117117
.map(router -> (RouterFunction<?>)router)

0 commit comments

Comments
 (0)