removeSibling(getMainObject());
super.mainObjectDeleted();
}
private void removeSibling(Operation sibling) {
Operation dep = getDependantObject();
OperationId deleted = sibling.getID();
List<OperationId> updated = Lists.newArrayList();
for (OperationId id : dep.getSiblingOperations()) {
if (!id.equals(deleted)) {
updated.add(id);
}
}
dep.setSiblingOperations(updated.toArray(new OperationId[updated.size()]));
}