mirror of https://github.com/apache/lucene.git
SOLR-7209: cleaned formatting
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1665342 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00005759ba
commit
91de592387
|
@ -414,10 +414,10 @@ public class JsonRecordReader {
|
|||
}
|
||||
}
|
||||
} finally {
|
||||
if ((isRecord() || !isRecordStarted) ) {
|
||||
for (String fld : valuesAddedinThisFrame) {
|
||||
values.remove(fld);
|
||||
}
|
||||
if ((isRecord() || !isRecordStarted)) {
|
||||
for (String fld : valuesAddedinThisFrame) {
|
||||
values.remove(fld);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,8 +220,9 @@ public class TestJsonRecordReader extends SolrTestCaseJ4 {
|
|||
records = streamer.getAllRecords(new StringReader(json));
|
||||
assertEquals(2, records.size());
|
||||
}
|
||||
public void testClearPreviousRecordFields() throws Exception{
|
||||
String json= "{\n" +
|
||||
|
||||
public void testClearPreviousRecordFields() throws Exception {
|
||||
String json = "{\n" +
|
||||
"'first': 'John',\n" +
|
||||
"'exams': [\n" +
|
||||
"{'subject': 'Maths', 'test' : 'term1', 'marks':90},\n" +
|
||||
|
@ -249,7 +250,7 @@ public class TestJsonRecordReader extends SolrTestCaseJ4 {
|
|||
|
||||
for (Map<String, Object> record : records) {
|
||||
for (Map.Entry<String, Object> e : record.entrySet()) {
|
||||
assertFalse(e.getValue() instanceof List);
|
||||
assertFalse(e.getValue() instanceof List);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue