Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Sep 24, 2024
1 parent 1b1a352 commit 136c699
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2171,21 +2171,21 @@ public void testPatchSourceNested() throws IOException {
final Object vector1;
final Object vector2;
if (elementType.equals(ElementType.FLOAT)) {
vector1 = new double[]{1, 2, 3};
vector2 = new double[]{4, 5, 6};
vector1 = new double[] { 1, 2, 3 };
vector2 = new double[] { 4, 5, 6 };
} else {
vector1 = new int[]{1, 2, 3};
vector2 = new int[]{4, 5, 6};
vector1 = new int[] { 1, 2, 3 };
vector2 = new int[] { 4, 5, 6 };
}
assertSourcePatch(
mapperService,
Map.of(
"nested",
List.of(Map.of("field", vector1, "another_field", 65), Map.of(), Map.of("field", vector2), Map.of("another_field", 32)),
"another_field",
75
),
true
mapperService,
Map.of(
"nested",
List.of(Map.of("field", vector1, "another_field", 65), Map.of(), Map.of("field", vector2), Map.of("another_field", 32)),
"another_field",
75
),
true
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,10 @@ protected static String syntheticSource(DocumentMapper mapper, IndexReader reade
final String synthetic2;
{
int[] docIds = new int[] { docId };
SourceLoader sourceLoader = new SourceLoader.Synthetic(() -> mapper.mapping().syntheticFieldLoader(null), SourceFieldMetrics.NOOP);
SourceLoader sourceLoader = new SourceLoader.Synthetic(
() -> mapper.mapping().syntheticFieldLoader(null),
SourceFieldMetrics.NOOP
);
var sourceLeafLoader = sourceLoader.leaf(getOnlyLeafReader(reader), docIds);
var storedFieldLoader = StoredFieldLoader.create(false, sourceLoader.requiredStoredFields())
.getLoader(leafReader.getContext(), docIds);
Expand Down

0 comments on commit 136c699

Please sign in to comment.