(T child)
| 153 | } |
| 154 | |
| 155 | void addChild(T child) { |
| 156 | assert child.getCls() != getCls(); |
| 157 | assert child != this; |
| 158 | assert !parents.contains(child); |
| 159 | |
| 160 | if (children.isEmpty()) children = Util.newIdentityHashSet(); |
| 161 | |
| 162 | children.add(child); |
| 163 | } |
| 164 | |
| 165 | public Set<T> getChildren() { |
| 166 | return children; |
no test coverage detected