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
7cafd309
Commit
7cafd309
authored
Nov 12, 2025
by
Luna Riegel
Browse files
Refactor: Synchronize cache after Checks + Schematron
parent
8b2305a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/Checker.java
View file @
7cafd309
...
@@ -205,14 +205,16 @@ public class Checker {
...
@@ -205,14 +205,16 @@ public class Checker {
}
}
if
(
schematronThread
.
isAlive
())
{
if
(
schematronThread
.
isAlive
())
{
//TODO: Localize String
//TODO: Localize String
logger
.
info
(
"Schematron
thread
still running
, w
aiting for completion
. T
his may take some time"
);
logger
.
info
(
"Schematron
is
still running
. W
aiting for completion
, t
his may take some time"
);
try
{
try
{
schematronThread
.
join
();
schematronThread
.
join
();
logger
.
info
(
"Schematron completed."
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
logger
.
error
(
"Main Thread was interrupted while waiting for Schematron"
,
e
);
logger
.
error
(
"Main Thread was interrupted while waiting for Schematron"
,
e
);
schematronThread
.
interrupt
();
schematronThread
.
interrupt
();
}
}
}
}
CacheManager
.
synchronizeCache
();
model
.
setValidated
(
createValidationPlan
());
model
.
setValidated
(
createValidationPlan
());
}
}
...
@@ -694,8 +696,6 @@ public class Checker {
...
@@ -694,8 +696,6 @@ public class Checker {
String
msg
=
String
.
format
(
"Checker could not load %d/%.0f features (%.2f%%)"
,
missing
,
featureSum
,
(
missing
/
featureSum
)
*
100
);
String
msg
=
String
.
format
(
"Checker could not load %d/%.0f features (%.2f%%)"
,
missing
,
featureSum
,
(
missing
/
featureSum
)
*
100
);
logger
.
warn
(
msg
);
logger
.
warn
(
msg
);
}
}
CacheManager
.
synchronizeCache
();
// model.preCacheShownFeatures();
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
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