Skip to content
Snippets Groups Projects
Commit bc0b4ddc authored by User expired's avatar User expired
Browse files

fixed findbugs problem

parent 1cb86023
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,11 @@ public class NodeConnection { ...@@ -149,7 +149,11 @@ public class NodeConnection {
} }
private static Collection<Integer> getRoutesToTargetNode(final Map<Node, Collection<Link>> m, final int nodeId) { private static Collection<Integer> getRoutesToTargetNode(final Map<Node, Collection<Link>> m, final int nodeId) {
final Collection<Link> linkSet = m.get(nodeId); return getRoutesToTargetNode(m, getNodeById(m, nodeId));
}
private static Collection<Integer> getRoutesToTargetNode(final Map<Node, Collection<Link>> m, final Node node) {
final Collection<Link> linkSet = m.get(node);
final Set<Integer> resultSet = new HashSet<>(linkSet.size()); final Set<Integer> resultSet = new HashSet<>(linkSet.size());
for (final Link l : linkSet) { for (final Link l : linkSet) {
resultSet.add(l.getRoute()); resultSet.add(l.getRoute());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment