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.
|
||||
@@ -96,7 +96,7 @@ public interface ConfigurableWebApplicationContext extends WebApplicationContext
|
||||
* <p>If not set, the implementation is supposed to use a default for the
|
||||
* given namespace or the root web application context, as appropriate.
|
||||
*/
|
||||
void setConfigLocations(String[] configLocations);
|
||||
void setConfigLocations(String... configLocations);
|
||||
|
||||
/**
|
||||
* Return the config locations for this web application context,
|
||||
|
||||
@@ -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.
|
||||
@@ -231,7 +231,7 @@ public class GenericWebApplicationContext extends GenericApplicationContext
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setConfigLocations(String[] configLocations) {
|
||||
public void setConfigLocations(String... configLocations) {
|
||||
if (!ObjectUtils.isEmpty(configLocations)) {
|
||||
throw new UnsupportedOperationException(
|
||||
"GenericWebApplicationContext does not support setConfigLocations(). " +
|
||||
|
||||
@@ -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.
|
||||
@@ -125,7 +125,7 @@ public class StaticWebApplicationContext extends StaticApplicationContext
|
||||
* @throws UnsupportedOperationException <b>always</b>
|
||||
*/
|
||||
@Override
|
||||
public void setConfigLocations(String[] configLocations) {
|
||||
public void setConfigLocations(String... configLocations) {
|
||||
if (configLocations != null) {
|
||||
throw new UnsupportedOperationException("StaticWebApplicationContext does not support config locations");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user