* @return The list of vertices for the object
*/
public List<TmfVertex> getNodesOf(IGraphWorker obj) {
- return NonNullUtils.checkNotNull(fNodeMap.get(obj));
+ return fNodeMap.get(obj);
}
/**
* @return The vertex map
*/
public Set<IGraphWorker> getWorkers() {
- return NonNullUtils.checkNotNull(ImmutableSet.copyOf(fNodeMap.keySet()));
+ return ImmutableSet.copyOf(fNodeMap.keySet());
}
/**
HashSet<TmfVertex> visited = new HashSet<>();
stack.add(start);
while (!stack.isEmpty()) {
- TmfVertex curr = NonNullUtils.checkNotNull(stack.pop());
+ TmfVertex curr = stack.pop();
if (visited.contains(curr)) {
continue;
}