use varargs for scan method as well

This commit is contained in:
Juergen Hoeller
2009-12-08 10:17:27 +00:00
parent 95ddeff17d
commit e65ba99e23

View File

@@ -114,7 +114,7 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
* Perform a scan within the specified base packages.
* @param basePackages the packages to check for annotated classes
*/
public void scan(String[] basePackages) {
public void scan(String... basePackages) {
this.scanner.scan(basePackages);
}