mirror of https://github.com/apache/lucene.git
LUCENE-7053: Simplify code to work around Java 8u25 compiler bug
This commit is contained in:
parent
ff6557cbcb
commit
3c27980c4a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue