Skip to content
Snippets Groups Projects
Commit 7c756148 authored by Geddings Barrineau's avatar Geddings Barrineau Committed by GitHub
Browse files

Fixed a bug in the Topology Manager dealing with Archipelagos and clusters. (#750)

* Fixed a bug in the Topology Manager dealing with Archipelagos and clusters. Also fixed a few broken tests.

The bug in question came in two parts:
1) The way a Cluster hashcode was previously calculated meant that any cluster with an ID less than 2^32 was given a hashcode of 0. The Cluster hashCode function has been fixed.
and
2) Archipelagos were previously stored in a HashSet. This was a mistake as archipelagos are by currently mutable objects. This meant that if an archipelago was modified, its hashcode would be modified as well, making it impossible to retrieve the archipelago in question from the HashSet of archipelagos. To fix this problem, archipelagos are now stored in a List.
parent b5be294d
No related branches found
No related tags found
No related merge requests found
Showing
with 98 additions and 179 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment