Skip to content

Commit

Permalink
Use LinkedHashMap so that the topological sort will process the nodes…
Browse files Browse the repository at this point in the history
… in the same order of collecting
  • Loading branch information
Dao007forever committed Mar 22, 2014
1 parent e5da288 commit 57462ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/testng/internal/Graph.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
public class Graph<T> {
private static boolean m_verbose = false;
private Map<T, Node<T>> m_nodes = Maps.newHashMap();
private Map<T, Node<T>> m_nodes = Maps.newLinkedHashMap();
private List<T> m_strictlySortedNodes = null;

// A map of nodes that are not the predecessors of any node
Expand Down

0 comments on commit 57462ca

Please sign in to comment.