Skip to content

Commit b0cf821

Browse files
committed
style: spotlessApply for shape-optional field tests
Signed-off-by: arimu1 <19286898+arimu1@users.noreply.github.com>
1 parent fc13f98 commit b0cf821

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

java-client/src/test/java/org/opensearch/client/opensearch/_types/query_dsl/GeoShapeQueryFieldTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ public void toBuilder() {
2222

2323
@Test
2424
public void indexedShapeOnly() {
25-
GeoShapeQueryField field = new GeoShapeQueryField.Builder().indexedShape(
26-
i -> i.id("id").index("shapes").path("location")
27-
).build();
25+
GeoShapeQueryField field = new GeoShapeQueryField.Builder().indexedShape(i -> i.id("id").index("shapes").path("location")).build();
2826

2927
assertNull(field.shape());
3028
assertEquals("id", field.indexedShape().id());

java-client/src/test/java/org/opensearch/client/opensearch/_types/query_dsl/XyShapeQueryFieldTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ public void toBuilder() {
4646

4747
@Test
4848
public void indexedShapeOnly() {
49-
XyShapeQueryField field = new XyShapeQueryField.Builder().indexedShape(i -> i.id("id").index("shapes").path("location"))
50-
.build();
49+
XyShapeQueryField field = new XyShapeQueryField.Builder().indexedShape(i -> i.id("id").index("shapes").path("location")).build();
5150

5251
assertNull(field.shape());
5352
assertEquals("id", field.indexedShape().id());

0 commit comments

Comments
 (0)