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
dc81c5a4
Commit
dc81c5a4
authored
Nov 13, 2020
by
Matthias Betz
Browse files
fixed bug with global parameters not getting through to checks
parent
29105946
Pipeline
#1276
failed with stage
in 1 minute and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/check/Checker.java
View file @
dc81c5a4
...
...
@@ -346,10 +346,10 @@ public class Checker {
Check
c
=
checkConfig
.
getCheckForId
(
e
.
getKey
());
Map
<
String
,
String
>
parameters
=
new
HashMap
<>();
parameters
.
putAll
(
e
.
getValue
().
getParameters
());
parameters
.
put
(
"numberOfRound
ed
Places"
,
""
+
config
.
getNumberOfRoundingPlaces
());
parameters
.
put
(
"numberOfRound
ing
Places"
,
""
+
config
.
getNumberOfRoundingPlaces
());
parameters
.
put
(
"minVertexDistance"
,
""
+
config
.
getMinVertexDistance
());
// initialize checks with parameters
c
.
init
(
e
.
getValue
().
getP
arameters
()
,
parserConfig
);
c
.
init
(
p
arameters
,
parserConfig
);
checks
.
add
(
c
);
}
}
...
...
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