Minor efficiency: use >= instead of > in test

This commit is contained in:
Eric Banks 2012-11-27 01:11:23 -05:00
parent 405f3c675d
commit cc72aaefeb
1 changed files with 1 additions and 1 deletions

View File

@ -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