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 f90aa5d3ff11a..658e505fb47bd 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");