#1738 - Refactor toArray() plus various

This commit is contained in:
rob bygrave
2019-06-29 00:40:16 +12:00
parent 7fa5e2aa8c
commit ddf200ffdd
33 changed files with 50 additions and 53 deletions
@@ -142,7 +142,7 @@ class BeanLifecycleAdapterFactory {
* Utility method to covert List of Method into array (because we care about performance here).
*/
static Method[] toArray(List<Method> methodList) {
return methodList.toArray(new Method[methodList.size()]);
return methodList.toArray(new Method[0]);
}
static RuntimeException unwrapException(ReflectiveOperationException e) {