File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
spring-boot-project/spring-boot/src/main/java/org/springframework/boot Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -159,18 +159,20 @@ private void load(Class<?> source) {
159
159
}
160
160
}
161
161
162
- private int load (Resource source ) {
162
+ private void load (Resource source ) {
163
163
if (source .getFilename ().endsWith (".groovy" )) {
164
164
if (this .groovyReader == null ) {
165
165
throw new BeanDefinitionStoreException ("Cannot load Groovy beans without Groovy on classpath" );
166
166
}
167
- return this .groovyReader .loadBeanDefinitions (source );
167
+ this .groovyReader .loadBeanDefinitions (source );
168
+ }
169
+ else {
170
+ this .xmlReader .loadBeanDefinitions (source );
168
171
}
169
- return this .xmlReader .loadBeanDefinitions (source );
170
172
}
171
173
172
- private int load (Package source ) {
173
- return this .scanner .scan (source .getName ());
174
+ private void load (Package source ) {
175
+ this .scanner .scan (source .getName ());
174
176
}
175
177
176
178
private void load (CharSequence source ) {
You can’t perform that action at this time.
0 commit comments