diff --git a/core/src/main/java/org/kohsuke/stapler/framework/io/AtomicFileWriter.java b/core/src/main/java/org/kohsuke/stapler/framework/io/AtomicFileWriter.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/org/kohsuke/stapler/framework/io/AtomicFileWriter.java
+++ b/core/src/main/java/org/kohsuke/stapler/framework/io/AtomicFileWriter.java
@@ -86,10 +86,7 @@ public class AtomicFileWriter extends Writer {
         close();
         if(destFile.exists() && !destFile.delete())
             throw new IOException("Unable to delete "+destFile);
-        boolean success = tmpFile.renameTo(destFile);
-        if (!success) {
-            throw new IOException("Unable to rename: " + destFile);
-        }
+        Files.move(tmpFile.toPath(), destFile.toPath());
     }
 
     /**
Another review update that got lost in transition.