commit | 509ca343769fa66b6f644561f9a9384a4c5ee5d1 | [log] [tgz] |
---|---|---|
author | Jeremy Sharpe <jsharpe@google.com> | Tue May 11 10:12:25 2010 -0700 |
committer | Jeremy Sharpe <jsharpe@google.com> | Tue May 11 10:22:59 2010 -0700 |
tree | ae829174b1faa2dbfd4124309eb3440ed73e3d61 | |
parent | 0af0a7959d838c48e6b4e8dc9ac188ff6bbb6a87 [diff] |
Fix a bug in PriorityQueue where compareTo() is used instead of equals() in the remove() method. According to the documentation for PriorityQueue, equals() must be used. Fixed one unit test (which needed the incorrect behaviour in order to pass). Verified that the old test fails against Sun's libraries, and the new one passes (and fails against ours until the change is applied). Change-Id: I93e7d3435d5cdc4432969585064df704f92d6ae5