Skip to content
Snippets Groups Projects
Commit 69437ee4 authored by tpylak's avatar tpylak
Browse files

minor: fix error from previous check in

SVN: 2363
parent c817ec0c
No related branches found
No related tags found
No related merge requests found
...@@ -406,7 +406,7 @@ public final class BeanUtils ...@@ -406,7 +406,7 @@ public final class BeanUtils
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private static <T> T createArray(Class<T> beanClass, int length) throws NegativeArraySizeException private static <T> T createArray(Class<T> beanClass, int length) throws NegativeArraySizeException
{ {
return (T) createArrayOfType(beanClass.getComponentType(), length); return (T) Array.newInstance(beanClass.getComponentType(), length);
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment