File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
test/framework/src/main/java/org/elasticsearch/test Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -702,12 +702,11 @@ protected List<String> filteredWarnings() {
702702 protected final void assertSettingDeprecationsAndWarnings (final Setting <?>[] settings , final DeprecationWarning ... warnings ) {
703703 assertWarnings (true , Stream .concat (Arrays .stream (settings ).map (setting -> {
704704 Level level = setting .getProperties ().contains (Setting .Property .Deprecated ) ? DeprecationLogger .CRITICAL : Level .WARN ;
705- String warningMessage = String .format (
706- Locale .ROOT ,
705+ String warningMessage = Strings .format (
707706 "[%s] setting was deprecated in Elasticsearch and will be removed in a future release. "
708- + "See the %s changes documentation for the next major version." ,
707+ + "See the %s documentation for the next major version." ,
709708 setting .getKey (),
710- (level == Level .WARN ) ? "deprecation" : "breaking"
709+ (level == Level .WARN ) ? "deprecation" : "breaking changes "
711710 );
712711 return new DeprecationWarning (level , warningMessage );
713712 }), Arrays .stream (warnings )).toArray (DeprecationWarning []::new ));
You can’t perform that action at this time.
0 commit comments