aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-02-16 23:19:27 +0000
committerPJ Fanning <fanningpj@apache.org>2022-02-16 23:19:27 +0000
commit9152b15bb5c517185005d55c91be9728ede5b926 (patch)
tree8285e4353a7bd23a4d85f3aa6d7c44c5be12ea0f /poi
parent3f3d194689a21a81325240a3810e3dc6956bb81c (diff)
downloadpoi-9152b15bb5c517185005d55c91be9728ede5b926.tar.gz
poi-9152b15bb5c517185005d55c91be9728ede5b926.zip
use Files.createTempFile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898136 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/util/DefaultTempFileCreationStrategy.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/poi/src/main/java/org/apache/poi/util/DefaultTempFileCreationStrategy.java b/poi/src/main/java/org/apache/poi/util/DefaultTempFileCreationStrategy.java
index 342bbeb4f5..656ff73773 100644
--- a/poi/src/main/java/org/apache/poi/util/DefaultTempFileCreationStrategy.java
+++ b/poi/src/main/java/org/apache/poi/util/DefaultTempFileCreationStrategy.java
@@ -22,6 +22,8 @@ import static org.apache.poi.util.TempFile.JAVA_IO_TMPDIR;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.attribute.FileAttribute;
/**
* Default implementation of the {@link TempFileCreationStrategy} used by {@link TempFile}:
@@ -58,7 +60,7 @@ public class DefaultTempFileCreationStrategy implements TempFileCreationStrategy
*
* @param dir The directory where the temporary files will be created (<code>null</code> to use the default directory).
*
- * @see File#createTempFile(String, String, File)
+ * @see Files#createTempFile(Path, String, String, FileAttribute[])
*/
public DefaultTempFileCreationStrategy(File dir) {
this.dir = dir;