Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
Expand Down Expand Up @@ -195,7 +196,7 @@ private ResourceResolver getResourceResolver() throws ReplicationException {
* @throws IOException if an I/O error occurs
*/
private File createJSONFile(JSONObject json) throws IOException {
final File tmpFile = File.createTempFile("demandware", ".json");
final File tmpFile = Files.createTempFile("demandware", ".json").toFile();
boolean successful = false;
try {
FileWriter writer = new FileWriter(tmpFile);
Expand Down