Skip to content
Snippets Groups Projects
Commit cc1a2c3f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unnecessary casting removed

parent 7a2352d1
No related branches found
No related tags found
1 merge request!44Resolve "semantic zoom"
......@@ -123,16 +123,16 @@ public class CreateHierarchyCommand extends ModelCommand {
alias.setCompartment(null);
alias.setTransparencyLevel("");
}
for (BioEntity bioEntity: getModel().getBioEntities()) {
for (BioEntity bioEntity : getModel().getBioEntities()) {
bioEntity.setVisibilityLevel("0");
}
Set<PathwayCompartment> toRemove = new HashSet<>();
Set<Compartment> toRemove = new HashSet<>();
for (Compartment alias : getModel().getCompartments()) {
if (alias instanceof PathwayCompartment) {
toRemove.add((PathwayCompartment) alias);
toRemove.add(alias);
}
}
for (PathwayCompartment alias : toRemove) {
for (Compartment alias : toRemove) {
getModel().removeElement(alias);
}
}
......
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