1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-10 15:50:57 +00:00

#1580 Make source code compatible to Java 1.7 (forgot one stream usage)

This commit is contained in:
Dietrich Travkin 2023-10-30 10:39:34 +01:00
parent 8b87aa0c1c
commit 263662d6d3

View File

@ -71,7 +71,14 @@ public class EntityGenderUtils {
if (test.getStereotype() == null) { if (test.getStereotype() == null) {
return false; return false;
} }
return test.getStereotype().getLabels(Guillemet.DOUBLE_COMPARATOR).stream().anyMatch(stereotype::equals);
for (String label : test.getStereotype().getLabels(Guillemet.DOUBLE_COMPARATOR)) {
if (label.equals(stereotype)) {
return true;
}
}
return false;
} }
@Override @Override