Skip to content

Commit 210a023

Browse files
fix use of deprecated AtomicFileWriter constructor
1 parent 93ebdba commit 210a023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/hudson/XmlFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public void write(Object o) throws IOException {
207207
mkdirs();
208208
AtomicFileWriter w = force
209209
? new AtomicFileWriter(file)
210-
: new AtomicFileWriter(file.toPath(), StandardCharsets.UTF_8, false, false);
210+
: new AtomicFileWriter(file.toPath(), StandardCharsets.UTF_8);
211211
try {
212212
w.write("<?xml version='1.1' encoding='UTF-8'?>\n");
213213
beingWritten.put(o, null);

0 commit comments

Comments
 (0)