From 7d83a3aa9ce1da8b7515f042be52c7bf97140ffa Mon Sep 17 00:00:00 2001 From: Marco Hunsicker Date: Thu, 17 Nov 2016 23:29:27 +0100 Subject: [PATCH] More cleanup; use save Collection comparison --- tool/src/org/antlr/v4/misc/Graph.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tool/src/org/antlr/v4/misc/Graph.java b/tool/src/org/antlr/v4/misc/Graph.java index 90e4b9cd8..a67697874 100644 --- a/tool/src/org/antlr/v4/misc/Graph.java +++ b/tool/src/org/antlr/v4/misc/Graph.java @@ -46,7 +46,9 @@ public class Graph { public static class Node { public T payload; - public List> edges = Collections.emptyList(); // points at which nodes? + + @SuppressWarnings("unchecked") + public List> edges = Collections.EMPTY_LIST; // points at which nodes? public Node(T payload) { this.payload = payload; }