From 743c1894ec07622a6307ae412ff16aba68cc2563 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 8 Dec 2009 10:17:27 +0000 Subject: [PATCH] use varargs for scan method as well git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2601 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../context/annotation/AnnotationConfigApplicationContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java index a60f30e9da5..0b0a9053c46 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java @@ -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); }