Archived
0

fix search pair

This commit is contained in:
iMoHax
2016-03-03 14:24:58 +03:00
parent 008a2f0cee
commit 0a0ae48403

View File

@@ -120,7 +120,7 @@ public class RouteSpecificationByPair<T> implements RouteSpecification<T> {
if (sIndex != -1 && fIndex != -1 && fIndex >= sIndex){ if (sIndex != -1 && fIndex != -1 && fIndex >= sIndex){
return 0; return 0;
} }
if ((full || sIndex != -1) && fIndex == -1 && first.contains(target)){ if ((full || sIndex != -1) && (fIndex == -1 || fIndex < sIndex && sIndex != -1) && first.contains(target)){
fIndex = i; fIndex = i;
} }
} }