Remove unneeded checkNotNull() calls
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.graph.core / src / org / eclipse / tracecompass / analysis / graph / core / base / TmfGraph.java
index 1e0ec7cd88ccf416f9585922026d59df2a5ea4a8..d59a8bc6069b17d2641ad427f6ad20d4c132d679 100644 (file)
@@ -265,7 +265,7 @@ public class TmfGraph {
      * @return The list of vertices for the object
      */
     public List<TmfVertex> getNodesOf(IGraphWorker obj) {
-        return NonNullUtils.checkNotNull(fNodeMap.get(obj));
+        return fNodeMap.get(obj);
     }
 
     /**
@@ -285,7 +285,7 @@ public class TmfGraph {
      * @return The vertex map
      */
     public Set<IGraphWorker> getWorkers() {
-        return NonNullUtils.checkNotNull(ImmutableSet.copyOf(fNodeMap.keySet()));
+        return ImmutableSet.copyOf(fNodeMap.keySet());
     }
 
     /**
@@ -345,7 +345,7 @@ public class TmfGraph {
         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;
             }
This page took 0.023997 seconds and 5 git commands to generate.