Commit 4496706d authored by Riegel's avatar Riegel
Browse files

Refactor: Use Files.exists() for file existence check

2 merge requests!28Version 3.17.0 Release,!26Add ZIP-archive support
Showing with 2 additions and 1 deletion
+2 -1
......@@ -9,6 +9,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.Serial;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
......@@ -64,7 +65,7 @@ public class LibraryObject extends Geometry {
private static Geometry parseFile(Path path, ParserConfiguration config) {
Geometry geo = null;
if (path.toFile().exists()) {
if (Files.exists(path)) {
try {
geo = getProtoGeometry(CityGmlParser.parseCityGmlFileSilently(path.toString(), config));
} catch (CityGmlParseException e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment