Consistent vararg declarations for String array setters
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user