[mkgmap-dev] RoadDef patch
From Brian Egge brianegge at gmail.com on Thu Nov 6 03:28:38 GMT 2014
I’m not sure what the concurrency issue is related to this class, but it seems to have some problems around equality. First, it’s being used in a HashMap, which means both equals and hashCode need to be implemented. Second, the compareTo was using an unimplemented hashCode, which results in random sorting and inability to find two identical objects. I’m not sure I understand all the details of what RoadDef does, but I’ve fixed up the basic methods in the class to be consistent and added a test case around those methods. -------------- next part -------------- A non-text attachment was scrubbed... Name: RoadDef.patch Type: application/octet-stream Size: 14163 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141105/6c15ac70/attachment.obj> -------------- next part -------------- Brian
- Previous message: [mkgmap-dev] patches
- Next message: [mkgmap-dev] RoadDef patch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list