projects
/
deliverable
/
tracecompass.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unneeded checkNotNull() calls
[deliverable/tracecompass.git]
/
analysis
/
org.eclipse.tracecompass.analysis.graph.core
/
src
/
org
/
eclipse
/
tracecompass
/
analysis
/
graph
/
core
/
base
/
TmfGraph.java
diff --git
a/analysis/org.eclipse.tracecompass.analysis.graph.core/src/org/eclipse/tracecompass/analysis/graph/core/base/TmfGraph.java
b/analysis/org.eclipse.tracecompass.analysis.graph.core/src/org/eclipse/tracecompass/analysis/graph/core/base/TmfGraph.java
index 1e0ec7cd88ccf416f9585922026d59df2a5ea4a8..d59a8bc6069b17d2641ad427f6ad20d4c132d679 100644
(file)
--- a/
analysis/org.eclipse.tracecompass.analysis.graph.core/src/org/eclipse/tracecompass/analysis/graph/core/base/TmfGraph.java
+++ b/
analysis/org.eclipse.tracecompass.analysis.graph.core/src/org/eclipse/tracecompass/analysis/graph/core/base/TmfGraph.java
@@
-265,7
+265,7
@@
public class TmfGraph {
* @return The list of vertices for the object
*/
public List<TmfVertex> getNodesOf(IGraphWorker obj) {
* @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 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()) {
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;
}
if (visited.contains(curr)) {
continue;
}
This page took
0.024051 seconds
and
5
git commands to generate.