From e20b3f4a35f732b2d5cdb7b9e5c18b6319b2d83a Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 12:34:42 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index 34512191..799a0851 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -171,14 +171,13 @@ public class FileManagerImpl implements FileManager { } // Internal - private void saveXmlInternal(Document document, String fileName) throws IOException { + private void saveXmlInternal(Document document) throws IOException { try { TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); DOMSource source = new DOMSource(document); - File file = this.path.resolve(fileName).toFile(); - StreamResult result = new StreamResult(file); + StreamResult result = new StreamResult(this.path.toFile()); transformer.transform(source, result); } catch (Exception e) {