if(root!=null && root.getChildren()!=null) { List<MavenModule> sortedList = new ArrayList<MavenModule>(); Stack<MavenModule> q = new Stack<MavenModule>(); MavenModule p = q.pop(); sortedList.add(p); List<MavenModule> children = p.getChildren(); if(children!=null) { for (MavenModule m : children)
if(root!=null && root.getChildren()!=null) { List<MavenModule> sortedList = new ArrayList<>(); Stack<MavenModule> q = new Stack<>(); MavenModule p = q.pop(); sortedList.add(p); List<MavenModule> children = p.getChildren(); if(children!=null) { for (MavenModule m : children)