diff --git a/server/src/main/java/org/elasticsearch/search/retriever/CompoundRetrieverBuilder.java b/server/src/main/java/org/elasticsearch/search/retriever/CompoundRetrieverBuilder.java index cedbf9e1e75c3..1e18f0ac18abb 100644 --- a/server/src/main/java/org/elasticsearch/search/retriever/CompoundRetrieverBuilder.java +++ b/server/src/main/java/org/elasticsearch/search/retriever/CompoundRetrieverBuilder.java @@ -235,12 +235,12 @@ public ActionRequestValidationException validate( if (innerRetriever.retriever() instanceof CompoundRetrieverBuilder compoundChild) { if (rankWindowSize > compoundChild.rankWindowSize) { String errorMessage = String.format( - Locale.ROOT, - "[%s] requires [rank_window_size: %d] to be smaller than or equal to its sub retriever's %s [rank_window_size: %d]", - this.getName(), - rankWindowSize, - compoundChild.getName(), - compoundChild.rankWindowSize + Locale.ROOT, + "[%s] requires [rank_window_size: %d] to be smaller than or equal to its sub retriever's %s [rank_window_size: %d]", + this.getName(), + rankWindowSize, + compoundChild.getName(), + compoundChild.rankWindowSize ); validationException = addValidationError(errorMessage, validationException); }