mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
リファクタリング
This commit is contained in:
parent
f3465bcf81
commit
8587c6a707
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user