mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 02:58:58 +00:00
fix invalid assert
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1439274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41cfa17016
commit
9c91842a94
@ -465,7 +465,7 @@ public class AssertingAtomicReader extends FilterAtomicReader {
|
||||
assert fi.getDocValuesType() == FieldInfo.DocValuesType.NUMERIC;
|
||||
return new AssertingNumericDocValues(dv, maxDoc());
|
||||
} else {
|
||||
assert fi == null || fi.hasDocValues() == false;
|
||||
assert fi == null || fi.getDocValuesType() != FieldInfo.DocValuesType.NUMERIC;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -479,7 +479,7 @@ public class AssertingAtomicReader extends FilterAtomicReader {
|
||||
assert fi.getDocValuesType() == FieldInfo.DocValuesType.BINARY;
|
||||
return new AssertingBinaryDocValues(dv, maxDoc());
|
||||
} else {
|
||||
assert fi == null || fi.hasDocValues() == false;
|
||||
assert fi == null || fi.getDocValuesType() != FieldInfo.DocValuesType.BINARY;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -493,7 +493,7 @@ public class AssertingAtomicReader extends FilterAtomicReader {
|
||||
assert fi.getDocValuesType() == FieldInfo.DocValuesType.SORTED;
|
||||
return new AssertingSortedDocValues(dv, maxDoc());
|
||||
} else {
|
||||
assert fi == null || fi.hasDocValues() == false;
|
||||
assert fi == null || fi.getDocValuesType() != FieldInfo.DocValuesType.SORTED;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user