Consistent vararg declarations for String array setters

This commit is contained in:
Juergen Hoeller
2014-08-08 17:17:09 +02:00
parent 47006eeff1
commit ad475ffadf
40 changed files with 265 additions and 311 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2014 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.
@@ -166,7 +166,7 @@ public interface BeanDefinition extends AttributeAccessor, BeanMetadataElement {
* Set the names of the beans that this bean depends on being initialized.
* The bean factory will guarantee that these beans get initialized first.
*/
void setDependsOn(String[] dependsOn);
void setDependsOn(String... dependsOn);
/**
* Return whether this bean is a candidate for getting autowired into some other bean.

View File

@@ -556,7 +556,7 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess
* of dependencies like statics (*ugh*) or database preparation on startup.
*/
@Override
public void setDependsOn(String[] dependsOn) {
public void setDependsOn(String... dependsOn) {
this.dependsOn = dependsOn;
}