mirror of https://github.com/apache/lucene.git
renamed a variable
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@816121 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
380e3917c4
commit
c736d09bd7
|
@ -189,12 +189,12 @@ public class XPathRecordReader {
|
|||
// But for CDATA | CHARACTERS | SPACE it should not do so because handling of
|
||||
// CDATA itself would have consumed the next event. CDATA may throw multiple events
|
||||
// so all the events are slurped till a START_ELEMENT is encountered.
|
||||
boolean skipNextEvent = false;
|
||||
boolean isNextEventFetched = false;
|
||||
int event = -1;
|
||||
while (true) {
|
||||
if (!skipNextEvent) {
|
||||
if (!isNextEventFetched) {
|
||||
event = parser.next();
|
||||
skipNextEvent = false;
|
||||
isNextEventFetched = false;
|
||||
}
|
||||
if (event == END_DOCUMENT) {
|
||||
return;
|
||||
|
@ -214,7 +214,7 @@ public class XPathRecordReader {
|
|||
if ((event == CDATA || event == CHARACTERS || event == SPACE)
|
||||
&& hasText) {
|
||||
valuesAddedinThisFrame.add(fieldName);
|
||||
skipNextEvent = true;
|
||||
isNextEventFetched = true;
|
||||
String text = parser.getText();
|
||||
event = parser.next();
|
||||
|
||||
|
|
Loading…
Reference in New Issue