diff --git a/test/framework/src/main/java/org/opensearch/index/mapper/MapperServiceTestCase.java b/test/framework/src/main/java/org/opensearch/index/mapper/MapperServiceTestCase.java index 504670d927d13..ddf8a23da6e46 100644 --- a/test/framework/src/main/java/org/opensearch/index/mapper/MapperServiceTestCase.java +++ b/test/framework/src/main/java/org/opensearch/index/mapper/MapperServiceTestCase.java @@ -241,7 +241,8 @@ protected XContentBuilder fieldMapping(CheckedConsumer buildField, Boolean isDerived) throws IOException { + protected final XContentBuilder fieldMapping(CheckedConsumer buildField, Boolean isDerived) + throws IOException { if (isDerived) { return derivedMapping(b -> { b.startObject("field");