リファクタリング

This commit is contained in:
r-ca committed 2024-01-09 12:42:16 +09:00
1 parent f3465bcf81
commit 8587c6a707
1 file changed
+1 -1
@@ -216,7 +216,7 @@ public class FileManagerImpl implements FileManager {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
return builder.parse(Files.newInputStream(this.path.toFile().toPath()));
return builder.parse(Files.newInputStream(this.path));
} catch (Exception e) {
logger.error("loadXmlInternal", e.getMessage());
throw new IOException("Failed to load xml");