consistently use varargs signature

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1907 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2009-09-17 10:24:56 +00:00
parent 7bad0343d9
commit 5713ee318c
2 changed files with 2 additions and 3 deletions
@@ -112,8 +112,7 @@ public class StaticListableBeanFactory implements ListableBeanFactory {
return (T) bean;
}
@SuppressWarnings("unchecked")
public Object getBean(String name, Object[] args) throws BeansException {
public Object getBean(String name, Object... args) throws BeansException {
if (args != null) {
throw new UnsupportedOperationException(
"StaticListableBeanFactory does not support explicit bean creation arguments)");