aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-01-27 00:16:31 +0000
committerPJ Fanning <fanningpj@apache.org>2022-01-27 00:16:31 +0000
commit6fac15c3bdc8b2ac7d7316705ef3b8bde02965c0 (patch)
tree3df1630bdfea8cc639f8e58b6ea5ee4844dd6a28 /poi/src
parent0c6bc4bd0b242757ba80d0b235d09e231d072cca (diff)
downloadpoi-6fac15c3bdc8b2ac7d7316705ef3b8bde02965c0.tar.gz
poi-6fac15c3bdc8b2ac7d7316705ef3b8bde02965c0.zip
[bug-65849] use Files.createTempFile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src')
-rw-r--r--poi/src/test/java/org/apache/poi/util/TestIOUtils.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/poi/src/test/java/org/apache/poi/util/TestIOUtils.java b/poi/src/test/java/org/apache/poi/util/TestIOUtils.java
index 1ce390f96a..077755c591 100644
--- a/poi/src/test/java/org/apache/poi/util/TestIOUtils.java
+++ b/poi/src/test/java/org/apache/poi/util/TestIOUtils.java
@@ -37,7 +37,6 @@ import java.io.PushbackInputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
import org.apache.poi.EmptyFileException;
@@ -182,7 +181,7 @@ final class TestIOUtils {
@Test
void testCopyToFile() throws IOException {
- File dest = Files.createTempFile("poi-ioutils-", "").toFile();
+ File dest = TempFile.createTempFile("poi-ioutils-", "");
try {
try (InputStream is = new FileInputStream(TMP)) {
assertEquals(LENGTH, IOUtils.copy(is, dest));