mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-08-26 08:26:53 +00:00
fix bug in CrawlURI.compare() discovered by Kenji, add unit test CrawlURITest.testOrdering()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user