v0.7.5a: removed unnecessary explicit type arguments

This commit is contained in:
Evan Debenham
2019-10-04 15:50:26 -04:00
parent c0d8a456b3
commit 009752822d
35 changed files with 55 additions and 55 deletions
@@ -40,7 +40,7 @@ public class Graph {
node.distance( Integer.MAX_VALUE );
}
LinkedList<Node> queue = new LinkedList<Node>();
LinkedList<Node> queue = new LinkedList<>();
focus.distance( 0 );
queue.add( focus );
@@ -63,7 +63,7 @@ public class Graph {
@SuppressWarnings("unchecked")
public static <T extends Node> List<T> buildPath( Collection<T> nodes, T from, T to ) {
List<T> path = new ArrayList<T>();
List<T> path = new ArrayList<>();
T room = from;
while (room != to) {