@@ -153,9 +153,7 @@ public void testWithIndexOptionsPruningConfigOnly() throws Exception {
153153
154154 public void testDotInFieldName () throws Exception {
155155 DocumentMapper mapper = createDocumentMapper (fieldMapping (this ::minimalMapping ));
156- ParsedDocument parsedDocument = mapper .parse (
157- source (b -> b .field ("field" , Map .of ("foo.bar" , 10 , "foobar" , 20 )))
158- );
156+ ParsedDocument parsedDocument = mapper .parse (source (b -> b .field ("field" , Map .of ("foo.bar" , 10 , "foobar" , 20 ))));
159157
160158 List <IndexableField > fields = parsedDocument .rootDoc ().getFields ("field" );
161159 assertEquals (2 , fields .size ());
@@ -197,7 +195,8 @@ public void testHandlesMultiValuedFields() throws MapperParsingException, IOExce
197195 // then fail appropriately
198196 assertEquals (
199197 "[sparse_vector] fields take hashes that map a feature to a strictly positive float, "
200- + "but got unexpected token " + "START_ARRAY" ,
198+ + "but got unexpected token "
199+ + "START_ARRAY" ,
201200 e .getCause ().getMessage ()
202201 );
203202
@@ -303,7 +302,7 @@ public void testTokensFreqRatioCorrect() {
303302 eTestInteger .getMessage (),
304303 containsString (
305304 "Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: "
306- + "[0:0] [pruning_config] failed to parse field [tokens_freq_ratio_threshold]"
305+ + "[0:0] [pruning_config] failed to parse field [tokens_freq_ratio_threshold]"
307306 )
308307 );
309308
@@ -320,7 +319,7 @@ public void testTokensFreqRatioCorrect() {
320319 eTestRangeLower .getMessage (),
321320 containsString (
322321 "Failed to parse mapping: java.lang.IllegalArgumentException: "
323- + "[tokens_freq_ratio_threshold] must be between [1] and [100], got -2.0"
322+ + "[tokens_freq_ratio_threshold] must be between [1] and [100], got -2.0"
324323 )
325324 );
326325
@@ -337,7 +336,7 @@ public void testTokensFreqRatioCorrect() {
337336 eTestRangeHigher .getMessage (),
338337 containsString (
339338 "Failed to parse mapping: java.lang.IllegalArgumentException: "
340- + "[tokens_freq_ratio_threshold] must be between [1] and [100], got 101"
339+ + "[tokens_freq_ratio_threshold] must be between [1] and [100], got 101"
341340 )
342341 );
343342 }
@@ -356,7 +355,7 @@ public void testTokensWeightThresholdCorrect() {
356355 eTestDouble .getMessage (),
357356 containsString (
358357 "Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: "
359- + "[0:0] [pruning_config] failed to parse field [tokens_weight_threshold]"
358+ + "[0:0] [pruning_config] failed to parse field [tokens_weight_threshold]"
360359 )
361360 );
362361
0 commit comments