Allocate array of the correct size

This commit is contained in:
Benedikt Ritter 2015-05-04 21:26:07 +02:00
parent 8548b12d8f
commit 60b32953a9
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ public class ReflectionToStringBuilder extends ToStringBuilder {
list.add(e.toString());
}
}
return list.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
return list.toArray(new String[list.size()]);
}