リファクタリング

This commit is contained in:
r-ca 2024-01-09 12:42:16 +09:00
parent f3465bcf81
commit 8587c6a707
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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");