]> source.dussan.org Git - poi.git/commitdiff
Remove unnecessary array conversion in HWPF FSPATable
authorMarius Volkhart <mariusvolkhart@apache.org>
Mon, 1 Mar 2021 19:06:28 +0000 (19:06 +0000)
committerMarius Volkhart <mariusvolkhart@apache.org>
Mon, 1 Mar 2021 19:06:28 +0000 (19:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887044 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java

index e1819a66d92d807a5b69fc1e89f2c0a6b1f33ab9..5da742096d713df507742823d614c09a635d82c0 100644 (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() {