BeanDefinitionReader and ClassPath/FileSystemXmlApplicationContext use varargs where possible (SPR-6849)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -89,7 +89,7 @@ public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContex
|
||||
* @param configLocations array of resource locations
|
||||
* @throws BeansException if context creation failed
|
||||
*/
|
||||
public ClassPathXmlApplicationContext(String[] configLocations) throws BeansException {
|
||||
public ClassPathXmlApplicationContext(String... configLocations) throws BeansException {
|
||||
this(configLocations, true, null);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -90,7 +90,7 @@ public class FileSystemXmlApplicationContext extends AbstractXmlApplicationConte
|
||||
* @param configLocations array of file paths
|
||||
* @throws BeansException if context creation failed
|
||||
*/
|
||||
public FileSystemXmlApplicationContext(String[] configLocations) throws BeansException {
|
||||
public FileSystemXmlApplicationContext(String... configLocations) throws BeansException {
|
||||
this(configLocations, true, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user