You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jt...@apache.org on 2020/12/21 04:56:27 UTC
[netbeans-html4j] branch master updated: createTempDirectory
atomically
This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-html4j.git
The following commit(s) were added to refs/heads/master by this push:
new fa70e50 createTempDirectory atomically
new 451f56e Merging with master
fa70e50 is described below
commit fa70e507e5555e1adb4f6518479fc408a7abd0e6
Author: Jaroslav Tulach <ja...@apidesign.org>
AuthorDate: Tue Dec 15 09:56:27 2020 +0100
createTempDirectory atomically
---
.../main/java/org/netbeans/html/presenters/webkit/UnJarResources.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/webkit/src/main/java/org/netbeans/html/presenters/webkit/UnJarResources.java b/webkit/src/main/java/org/netbeans/html/presenters/webkit/UnJarResources.java
index fb00113..1559a6d 100644
--- a/webkit/src/main/java/org/netbeans/html/presenters/webkit/UnJarResources.java
+++ b/webkit/src/main/java/org/netbeans/html/presenters/webkit/UnJarResources.java
@@ -39,9 +39,7 @@ final class UnJarResources {
if (jar == null) {
return url;
}
- File dir = File.createTempFile(jar.getName(), ".dir");
- dir.delete();
- dir.mkdirs();
+ File dir = Files.createTempDirectory(jar.getName() + ".dir").toFile();
Enumeration<JarEntry> en = jar.entries();
while (en.hasMoreElements()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists