fix bug in CrawlURI.compare() discovered by Kenji, add unit test CrawlURITest.testOrdering()

This commit is contained in:
Noah Levitt
2014-08-19 17:14:32 -07:00
parent 4298c3de69
commit 04921073ca
2 changed files with 118 additions and 23 deletions
@@ -1978,7 +1978,7 @@ implements Reporter, Serializable, OverlayContext, Comparable<CrawlURI> {
return 0;
} else if (a == null && b != null) {
return -1;
} else if (a != null && b != null) {
} else if (a != null && b == null) {
return 1;
} else {
return a.compareTo(b);