Fixed bug hidden by Set<RouterInfo> -> Set -> Set<Hash> unchecked conversion

This commit is contained in:
str4d
2013-11-20 04:18:15 +00:00
parent c86845078c
commit 796dbc5d2e

View File

@ -62,5 +62,5 @@ public class DummyNetworkDatabaseFacade extends NetworkDatabaseFacade {
}
public Set<Hash> getAllRouters() { return new HashSet<Hash>(_routers.keySet()); }
public Set<Hash> findNearestRouters(Hash key, int maxNumRouters, Set<Hash> peersToIgnore) { return new HashSet(_routers.values()); }
public Set<Hash> findNearestRouters(Hash key, int maxNumRouters, Set<Hash> peersToIgnore) { return getAllRouters(); }
}