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
5df59c7a
Commit
5df59c7a
authored
Dec 12, 2025
by
Matthias Betz
Browse files
fix error while removing results that have no error (result is ok)
parent
55f76a2c
Pipeline
#12289
passed with stage
in 1 minute and 59 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/check/Checkable.java
View file @
5df59c7a
...
@@ -224,7 +224,12 @@ public abstract class Checkable implements Serializable {
...
@@ -224,7 +224,12 @@ public abstract class Checkable implements Serializable {
* Clears the checkResults of this checkable unless the error occured during parsing.
* Clears the checkResults of this checkable unless the error occured during parsing.
*/
*/
public
void
clearCheckResults
()
{
public
void
clearCheckResults
()
{
checkResults
.
entrySet
().
removeIf
(
e
->
!
e
.
getValue
().
getError
().
isParsingError
());
checkResults
.
entrySet
().
removeIf
(
e
->
{
if
(
e
.
getValue
().
getError
()
==
null
)
{
return
true
;
}
return
!
e
.
getValue
().
getError
().
isParsingError
();
});
setValidated
(!
checkResults
.
isEmpty
());
setValidated
(!
checkResults
.
isEmpty
());
}
}
...
...
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