aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Volkhart <mariusvolkhart@apache.org>2021-03-01 19:06:28 +0000
committerMarius Volkhart <mariusvolkhart@apache.org>2021-03-01 19:06:28 +0000
commit86dec87499faaa91f64f17ad7c023f92244eaf24 (patch)
tree11f251afc4e4f3b98e20838b826c0212f1a9447a
parent8ea3d2274df4fc08602da046a8a4a85f40f7a9dc (diff)
downloadpoi-86dec87499faaa91f64f17ad7c023f92244eaf24.tar.gz
poi-86dec87499faaa91f64f17ad7c023f92244eaf24.zip
Remove unnecessary array conversion in HWPF FSPATable
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887044 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java
index e1819a66d9..5da742096d 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java
@@ -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() {