Reported off-list by Veselin Perovic.
public GraphLayout add(GraphLayout another) {
GraphLayout res = new GraphLayout();
for (Map.Entry<Long, GraphPathRecord> e : addresses.entrySet()) {
addRecord(e.getValue()); // <--- should be adding to res
...
return res;
}
public GraphLayout add(GraphLayout another) {
GraphLayout res = new GraphLayout();
for (Map.Entry<Long, GraphPathRecord> e : addresses.entrySet()) {
addRecord(e.getValue()); // <--- should be adding to res
...
return res;
}