Skip to content
Snippets Groups Projects
Commit 363c5231 authored by Zhibin Mai's avatar Zhibin Mai
Browse files

Change the way to determine whether a PropertyConfigurations have valid or invalid configuration

parent f0954788
No related branches found
No related tags found
1 merge request!583Prevent any exception from Augmenter functions to corrupt the normal indexing
Pipeline #199309 failed
......@@ -82,7 +82,7 @@ public class PropertyConfigurations {
return false;
}
return (configurations.stream().filter(config -> config.isValid()).count() > 0);
return configurations.stream().anyMatch(config -> config.isValid());
}
public boolean hasInvalidConfigurations() {
......@@ -90,7 +90,7 @@ public class PropertyConfigurations {
return false;
}
return (configurations.stream().filter(config -> !config.isValid()).count() > 0);
return configurations.stream().anyMatch(config -> !config.isValid());
}
public boolean isValid() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment