v0.7.5a: removed unnecessary explicit type arguments
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user