mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
リファクタリング
This commit is contained in:
parent
f3465bcf81
commit
8587c6a707
|
@ -216,7 +216,7 @@ public class FileManagerImpl implements FileManager {
|
||||||
try {
|
try {
|
||||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||||
return builder.parse(Files.newInputStream(this.path.toFile().toPath()));
|
return builder.parse(Files.newInputStream(this.path));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("loadXmlInternal", e.getMessage());
|
logger.error("loadXmlInternal", e.getMessage());
|
||||||
throw new IOException("Failed to load xml");
|
throw new IOException("Failed to load xml");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user