More cleanup; use save Collection comparison

This commit is contained in:
Marco Hunsicker 2016-11-17 23:29:27 +01:00
parent 00347217ed
commit 7d83a3aa9c
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ public class Graph<T> {
public static class Node<T> { public static class Node<T> {
public T payload; public T payload;
public List<Node<T>> edges = Collections.emptyList(); // points at which nodes?
@SuppressWarnings("unchecked")
public List<Node<T>> edges = Collections.EMPTY_LIST; // points at which nodes?
public Node(T payload) { this.payload = payload; } public Node(T payload) { this.payload = payload; }