aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache/poi/xwpf
diff options
context:
space:
mode:
authorSergey Vladimirov <sergey@apache.org>2011-07-25 10:12:21 +0000
committerSergey Vladimirov <sergey@apache.org>2011-07-25 10:12:21 +0000
commita50ce3cb6aad65323e834e2b3310ff86c9def56b (patch)
treefbbc42628a5866d570427a70fa36b3ca5e8fc3fb /src/ooxml/testcases/org/apache/poi/xwpf
parent5e6b7c6879758b8a242bc4fbe7356c00e277d0e4 (diff)
downloadpoi-a50ce3cb6aad65323e834e2b3310ff86c9def56b.tar.gz
poi-a50ce3cb6aad65323e834e2b3310ff86c9def56b.zip
restore JDK 1.5 compatibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150616 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xwpf')
-rw-r--r--src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFDocument.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFDocument.java b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFDocument.java
index 9828af1bb8..712b2333ce 100644
--- a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFDocument.java
+++ b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFDocument.java
@@ -19,7 +19,6 @@ package org.apache.poi.xwpf.usermodel;
import java.io.IOException;
import java.io.OutputStream;
-import java.util.Arrays;
import java.util.List;
import junit.framework.TestCase;
@@ -33,6 +32,7 @@ import org.apache.poi.openxml4j.opc.PackagePartName;
import org.apache.poi.openxml4j.opc.PackageRelationship;
import org.apache.poi.openxml4j.opc.PackagingURIHelper;
import org.apache.poi.openxml4j.opc.TargetMode;
+import org.apache.poi.util.ArrayUtil;
import org.apache.poi.xwpf.XWPFTestDataSamples;
import org.apache.xmlbeans.XmlCursor;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP;
@@ -286,7 +286,7 @@ public final class TestXWPFDocument extends TestCase {
String id1 = doc.addPictureData(newPic, Document.PICTURE_TYPE_JPEG);
assertEquals(2,doc.getAllPackagePictures().size());
/* copy data, to avoid instance-equality */
- byte[] newPicCopy = Arrays.copyOf(newPic, newPic.length);
+ byte[] newPicCopy = ArrayUtil.copyOf(newPic, newPic.length);
String id2 = doc.addPictureData(newPicCopy, Document.PICTURE_TYPE_JPEG);
assertEquals(id1,id2);
doc.getPackage().revert();