Use nio Files.delete instead of File.delete everywhere

This commit is contained in:
AsamK 2016-11-28 12:28:44 +01:00
parent e364610c93
commit 2351a89b00
2 changed files with 64 additions and 33 deletions

View file

@ -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");
}
}