mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
#1580 Make source code compatible to Java 1.7
This commit is contained in:
parent
f47ca8c339
commit
8b87aa0c1c
@ -534,15 +534,21 @@ public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy,
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<EntityHideOrShow> commands = hideOrShows.stream()
|
List<EntityHideOrShow> commands = new ArrayList<>();
|
||||||
.filter(cmd -> cmd.portion == EntityPortion.STEREOTYPE)
|
for (EntityHideOrShow hideOrShowEntry : hideOrShows) {
|
||||||
.collect(Collectors.toList());
|
if (hideOrShowEntry.portion == EntityPortion.STEREOTYPE) {
|
||||||
|
commands.add(hideOrShowEntry);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return entity.getStereotype()
|
List<String> visibleStereotypeLabels = new ArrayList<>();
|
||||||
.getLabels(Guillemet.DOUBLE_COMPARATOR)
|
for (String stereoTypeLabel: entity.getStereotype().getLabels(Guillemet.DOUBLE_COMPARATOR)) {
|
||||||
.stream()
|
if (isHiddenStereotypeLabel(stereoTypeLabel, commands)) {
|
||||||
.filter(stereoTypeLabel -> isHiddenStereotypeLabel(stereoTypeLabel, commands))
|
visibleStereotypeLabels.add(stereoTypeLabel);
|
||||||
.collect(Collectors.toList());
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return visibleStereotypeLabels;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isHiddenStereotypeLabel(String stereoTypeLabel, List<EntityHideOrShow> commands) {
|
private boolean isHiddenStereotypeLabel(String stereoTypeLabel, List<EntityHideOrShow> commands) {
|
||||||
|
Loading…
Reference in New Issue
Block a user