diff options
author | Axel Howind <axh@apache.org> | 2019-11-17 08:45:03 +0000 |
---|---|---|
committer | Axel Howind <axh@apache.org> | 2019-11-17 08:45:03 +0000 |
commit | 4f8879f8ef4f52a9d22c88718d58dae832706cb4 (patch) | |
tree | 58e4554eeeb3cded4a498b5bf6755d875d9f090d /src/scratchpad/testcases | |
parent | 10e0e3d108bc763f27db056c39285d24c6f068ab (diff) | |
download | poi-4f8879f8ef4f52a9d22c88718d58dae832706cb4.tar.gz poi-4f8879f8ef4f52a9d22c88718d58dae832706cb4.zip |
use zero size arg to toArray(), use Collection.addAll() (#63805, second patch)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java index 30c177f086..ba49c8cb5f 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java @@ -235,6 +235,6 @@ public final class TestTxMasterStyleAtom extends TestCase { } } - return lst.toArray(new TxMasterStyleAtom[lst.size()]); + return lst.toArray(new TxMasterStyleAtom[0]); } } |