From 5713ee318c1e08a1e41bcd2e3f810012dbe991f7 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 17 Sep 2009 10:24:56 +0000 Subject: [PATCH] consistently use varargs signature git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1907 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../beans/factory/support/StaticListableBeanFactory.java | 3 +-- .../springframework/jndi/support/SimpleJndiBeanFactory.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java index 68ec1cba6ac..864c0f81e82 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java @@ -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)"); diff --git a/org.springframework.context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java b/org.springframework.context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java index a016839a949..cddc2b043a7 100644 --- a/org.springframework.context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java +++ b/org.springframework.context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java @@ -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)");