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:
Noble Paul 2009-09-17 10:04:18 +00:00
parent 380e3917c4
commit c736d09bd7
1 changed files with 4 additions and 4 deletions

View File

@ -189,12 +189,12 @@ public class XPathRecordReader {
// But for CDATA | CHARACTERS | SPACE it should not do so because handling of // 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 // 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. // so all the events are slurped till a START_ELEMENT is encountered.
boolean skipNextEvent = false; boolean isNextEventFetched = false;
int event = -1; int event = -1;
while (true) { while (true) {
if (!skipNextEvent) { if (!isNextEventFetched) {
event = parser.next(); event = parser.next();
skipNextEvent = false; isNextEventFetched = false;
} }
if (event == END_DOCUMENT) { if (event == END_DOCUMENT) {
return; return;
@ -214,7 +214,7 @@ public class XPathRecordReader {
if ((event == CDATA || event == CHARACTERS || event == SPACE) if ((event == CDATA || event == CHARACTERS || event == SPACE)
&& hasText) { && hasText) {
valuesAddedinThisFrame.add(fieldName); valuesAddedinThisFrame.add(fieldName);
skipNextEvent = true; isNextEventFetched = true;
String text = parser.getText(); String text = parser.getText();
event = parser.next(); event = parser.next();