LUCENE-7053: Simplify code to work around Java 8u25 compiler bug

This commit is contained in:
Uwe Schindler 2016-03-01 18:36:54 +01:00
parent ff6557cbcb
commit 3c27980c4a
1 changed files with 1 additions and 6 deletions

View File

@ -74,12 +74,7 @@ public class TSTLookup extends Lookup {
final byte[] bBytes = b.bytes;
int bUpto = b.offset;
final int aStop;
if (a.length < b.length) {
aStop = aUpto + a.length;
} else {
aStop = aUpto + b.length;
}
final int aStop = aUpto + Math.min(a.length, b.length);
while(aUpto < aStop) {
int aByte = aBytes[aUpto++] & 0xff;