mirror of https://github.com/apache/lucene.git
LUCENE-8167: fix three incompleteEnumSwitch warnings
This commit is contained in:
parent
3019913c85
commit
4e40679d25
|
@ -249,7 +249,9 @@ public abstract class FilteredTermsEnum extends TermsEnum {
|
||||||
case END:
|
case END:
|
||||||
// we are supposed to end the enum
|
// we are supposed to end the enum
|
||||||
return null;
|
return null;
|
||||||
// NO: we just fall through and iterate again
|
case NO:
|
||||||
|
// we just iterate again
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,8 @@ public class TestDocValuesFieldSources extends LuceneTestCase {
|
||||||
vals[i] = (long) random().nextInt((int) PackedInts.maxValue(bitsPerValue));
|
vals[i] = (long) random().nextInt((int) PackedInts.maxValue(bitsPerValue));
|
||||||
f.setLongValue((Long) vals[i]);
|
f.setLongValue((Long) vals[i]);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
throw new AssertionError();
|
||||||
}
|
}
|
||||||
iw.addDocument(document);
|
iw.addDocument(document);
|
||||||
if (random().nextBoolean() && i % 10 == 9) {
|
if (random().nextBoolean() && i % 10 == 9) {
|
||||||
|
@ -150,6 +152,8 @@ public class TestDocValuesFieldSources extends LuceneTestCase {
|
||||||
case SORTED_NUMERIC:
|
case SORTED_NUMERIC:
|
||||||
assertEquals(((Number) expected).longValue(), values.longVal(i));
|
assertEquals(((Number) expected).longValue(), values.longVal(i));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
throw new AssertionError();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue