From b2129577b9cd1126e291e69a216e41b1079b3c02 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 13 Oct 2009 22:48:25 +0000 Subject: [PATCH] polishing --- .../beans/factory/support/AbstractBeanFactory.java | 2 +- .../beans/factory/support/RootBeanDefinition.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java index 669b0ab650..03155c4edf 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java @@ -205,7 +205,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp * @return an instance of the bean * @throws BeansException if the bean could not be created */ - public T getBean(String name, Class requiredType, Object[] args) throws BeansException { + public T getBean(String name, Class requiredType, Object... args) throws BeansException { return doGetBean(name, requiredType, args, false); } diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java index 4d88a35adf..44c6d3c628 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java @@ -120,6 +120,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition { * @param autowireMode by name or type, using the constants in this interface * @deprecated as of Spring 3.0, in favor of {@link #setAutowireMode} usage */ + @Deprecated public RootBeanDefinition(Class beanClass, int autowireMode) { super(); setBeanClass(beanClass); @@ -150,6 +151,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition { * @param pvs the property values to apply * @deprecated as of Spring 3.0, in favor of {@link #getPropertyValues} usage */ + @Deprecated public RootBeanDefinition(Class beanClass, MutablePropertyValues pvs) { super(null, pvs); setBeanClass(beanClass);