mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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:
parent
8ea3d2274d
commit
86dec87499
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user