Consistent use of StringUtils.toStringArray
(cherry picked from commit 6d11b40)
This commit is contained in:
@@ -551,7 +551,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
||||
results.add(beanName);
|
||||
}
|
||||
}
|
||||
return results.toArray(new String[results.size()]);
|
||||
return StringUtils.toStringArray(results);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 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.
|
||||
@@ -502,7 +502,7 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
|
||||
if (dependenciesForBean == null) {
|
||||
return new String[0];
|
||||
}
|
||||
return dependenciesForBean.toArray(new String[dependenciesForBean.size()]);
|
||||
return StringUtils.toStringArray(dependenciesForBean);
|
||||
}
|
||||
|
||||
public void destroySingletons() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 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.
|
||||
@@ -338,7 +338,7 @@ public class StaticListableBeanFactory implements ListableBeanFactory {
|
||||
results.add(beanName);
|
||||
}
|
||||
}
|
||||
return results.toArray(new String[results.size()]);
|
||||
return StringUtils.toStringArray(results);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user