Remove unnecessary array conversion in HWPF FSPATable

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marius Volkhart 2021-03-01 19:06:28 +00:00
parent 8ea3d2274d
commit 86dec87499

View File

@ -58,14 +58,14 @@ public final class FSPATable
return new FSPA( propertyNode.getBytes(), 0 );
}
public FSPA[] getShapes()
public List<FSPA> getShapes()
{
List<FSPA> result = new ArrayList<>(_byStart.size());
for ( GenericPropertyNode propertyNode : _byStart.values() )
{
result.add( new FSPA( propertyNode.getBytes(), 0 ) );
}
return result.toArray(new FSPA[0]);
return result;
}
public String toString() {