Commit ea30c096 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish 16263e34

See gh-22105
parent 263adf1c
......@@ -159,18 +159,20 @@ class BeanDefinitionLoader {
}
}
private int load(Resource source) {
private void load(Resource source) {
if (source.getFilename().endsWith(".groovy")) {
if (this.groovyReader == null) {
throw new BeanDefinitionStoreException("Cannot load Groovy beans without Groovy on classpath");
}
return this.groovyReader.loadBeanDefinitions(source);
this.groovyReader.loadBeanDefinitions(source);
}
else {
this.xmlReader.loadBeanDefinitions(source);
}
return this.xmlReader.loadBeanDefinitions(source);
}
private int load(Package source) {
return this.scanner.scan(source.getName());
private void load(Package source) {
this.scanner.scan(source.getName());
}
private void load(CharSequence source) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment