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:
Noble Paul 2015-03-09 20:23:08 +00:00
parent 00005759ba
commit 91de592387
2 changed files with 8 additions and 7 deletions

View File

@ -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);
}
}
}
}

View File

@ -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);
}
}
}