Skip to content

Commit c9c4361

Browse files
committed
[SPR-7953] BeanDefinitionVisitor now actually visits factory method names.
1 parent c84ef76 commit c9c4361

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

org.springframework.beans/src/main/java/org/springframework/beans/factory/config/BeanDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2009 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

org.springframework.beans/src/main/java/org/springframework/beans/factory/config/BeanDefinitionVisitor.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,6 +37,7 @@
3737
* contained in a BeanDefinition, resolving any placeholders found.
3838
*
3939
* @author Juergen Hoeller
40+
* @author Sam Brannen
4041
* @since 1.2
4142
* @see BeanDefinition
4243
* @see BeanDefinition#getPropertyValues
@@ -162,6 +163,7 @@ protected void visitGenericArgumentValues(List<ConstructorArgumentValues.ValueHo
162163
}
163164
}
164165

166+
@SuppressWarnings("rawtypes")
165167
protected Object resolveValue(Object value) {
166168
if (value instanceof BeanDefinition) {
167169
visitBeanDefinition((BeanDefinition) value);
@@ -209,7 +211,6 @@ else if (value instanceof String) {
209211
return value;
210212
}
211213

212-
@SuppressWarnings("unchecked")
213214
protected void visitArray(Object[] arrayVal) {
214215
for (int i = 0; i < arrayVal.length; i++) {
215216
Object elem = arrayVal[i];
@@ -220,7 +221,7 @@ protected void visitArray(Object[] arrayVal) {
220221
}
221222
}
222223

223-
@SuppressWarnings("unchecked")
224+
@SuppressWarnings({"unchecked", "rawtypes"})
224225
protected void visitList(List listVal) {
225226
for (int i = 0; i < listVal.size(); i++) {
226227
Object elem = listVal.get(i);
@@ -231,7 +232,7 @@ protected void visitList(List listVal) {
231232
}
232233
}
233234

234-
@SuppressWarnings("unchecked")
235+
@SuppressWarnings({"unchecked", "rawtypes"})
235236
protected void visitSet(Set setVal) {
236237
Set newContent = new LinkedHashSet();
237238
boolean entriesModified = false;
@@ -248,7 +249,7 @@ protected void visitSet(Set setVal) {
248249
}
249250
}
250251

251-
@SuppressWarnings("unchecked")
252+
@SuppressWarnings({"unchecked", "rawtypes"})
252253
protected void visitMap(Map<?, ?> mapVal) {
253254
Map newContent = new LinkedHashMap();
254255
boolean entriesModified = false;

0 commit comments

Comments
 (0)