Allocate array of the correct size
This commit is contained in:
parent
8548b12d8f
commit
60b32953a9
|
@ -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()]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue