mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Use nio Files.delete instead of File.delete everywhere
This commit is contained in:
parent
e364610c93
commit
2351a89b00
2 changed files with 64 additions and 33 deletions
|
@ -1,5 +1,7 @@
|
|||
package org.asamk.signal;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.SecureRandom;
|
||||
|
||||
|
@ -22,4 +24,8 @@ class Util {
|
|||
throw new AssertionError(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static File createTempFile() throws IOException {
|
||||
return File.createTempFile("signal_tmp_", ".tmp");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue