Browse Source

consistently use varargs signature

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1907 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 17 years ago
parent
commit
5713ee318c
  1. 3
      org.springframework.beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java
  2. 2
      org.springframework.context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java

3
org.springframework.beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java

@ -112,8 +112,7 @@ public class StaticListableBeanFactory implements ListableBeanFactory { @@ -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)");

2
org.springframework.context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java

@ -118,7 +118,7 @@ public class SimpleJndiBeanFactory extends JndiLocatorSupport implements BeanFac @@ -118,7 +118,7 @@ public class SimpleJndiBeanFactory extends JndiLocatorSupport implements BeanFac
}
}
public Object getBean(String name, Object[] args) throws BeansException {
public Object getBean(String name, Object... args) throws BeansException {
if (args != null) {
throw new UnsupportedOperationException(
"SimpleJndiBeanFactory does not support explicit bean creation arguments)");

Loading…
Cancel
Save