mirror of https://github.com/apache/lucene.git
LUCENE-7278: DRPT: fix bug in assert statement
This commit is contained in:
parent
06034c2474
commit
1d35bd0ea8
|
@ -23,7 +23,8 @@ New Features
|
||||||
queries with excluded bounds. (Adrien Grand)
|
queries with excluded bounds. (Adrien Grand)
|
||||||
|
|
||||||
* LUCENE-7278: Spatial-extras DateRangePrefixTree's Calendar is now configurable, to
|
* LUCENE-7278: Spatial-extras DateRangePrefixTree's Calendar is now configurable, to
|
||||||
e.g. clear the Gregorian Change Date. (David Smiley)
|
e.g. clear the Gregorian Change Date. Also, toString(cal) is now identical to
|
||||||
|
DateTimeFormatter.ISO_INSTANT. (David Smiley)
|
||||||
|
|
||||||
API Changes
|
API Changes
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,7 @@ public class DateRangePrefixTree extends NumberRangePrefixTree {
|
||||||
for (int f = field + 1; f <= Calendar.MILLISECOND; f++) {
|
for (int f = field + 1; f <= Calendar.MILLISECOND; f++) {
|
||||||
cal.clear(f);
|
cal.clear(f);
|
||||||
}
|
}
|
||||||
assert ((Calendar)cal.clone()).get(Calendar.ERA) == assertEra : "Calendar underflow";
|
assert field + 1 == Calendar.ERA || ((Calendar)cal.clone()).get(Calendar.ERA) == assertEra : "Calendar underflow";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Converts {@code value} from a {@link Calendar} or {@link Date} to a {@link Shape}. Other arguments
|
/** Converts {@code value} from a {@link Calendar} or {@link Date} to a {@link Shape}. Other arguments
|
||||||
|
|
Loading…
Reference in New Issue