Browse Source

use varargs for scan method as well

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2601 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 16 years ago
parent
commit
743c1894ec
  1. 2
      org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java

2
org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java

@ -114,7 +114,7 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex @@ -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);
}

Loading…
Cancel
Save