Minor efficiency: use >= instead of > in test
This commit is contained in:
parent
405f3c675d
commit
cc72aaefeb
|
|
@ -149,7 +149,7 @@ public class GenomeLocSortedSet extends AbstractSet<GenomeLoc> {
|
|||
previousOverlapSearchIndex = Collections.binarySearch(mArray, loc);
|
||||
|
||||
// if it matches an interval exactly, we are done
|
||||
if ( previousOverlapSearchIndex > 0 )
|
||||
if ( previousOverlapSearchIndex >= 0 )
|
||||
return true;
|
||||
|
||||
// check whether it overlaps the interval before or after the insertion point
|
||||
|
|
|
|||
Loading…
Reference in New Issue