Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
4496706d
Commit
4496706d
authored
Jan 10, 2025
by
Riegel
Browse files
Refactor: Use Files.exists() for file existence check
parent
8a154830
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/LibraryObject.java
View file @
4496706d
...
...
@@ -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
.
to
File
()
.
exists
())
{
if
(
File
s
.
exists
(
path
))
{
try
{
geo
=
getProtoGeometry
(
CityGmlParser
.
parseCityGmlFileSilently
(
path
.
toString
(),
config
));
}
catch
(
CityGmlParseException
e
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment