forked from jasder/antlr
More cleanup; use save Collection comparison
This commit is contained in:
parent
00347217ed
commit
7d83a3aa9c
|
@ -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; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue