Skip to content

Commit b34a73e

Browse files
committed
Remove forbidden API
1 parent 4c519dd commit b34a73e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/SemanticTextUpgradeIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void testSemanticTextOperations() throws Exception {
7676

7777
private void createAndPopulateIndex() throws IOException {
7878
final String indexName = getIndexName();
79-
final String mapping = """
79+
final String mapping = Strings.format("""
8080
{
8181
"properties": {
8282
"%s": {
@@ -85,7 +85,7 @@ private void createAndPopulateIndex() throws IOException {
8585
}
8686
}
8787
}
88-
""".formatted(SEMANTIC_TEXT_FIELD, SPARSE_MODEL.getInferenceEntityId());
88+
""", SEMANTIC_TEXT_FIELD, SPARSE_MODEL.getInferenceEntityId());
8989

9090
CreateIndexResponse response = createIndex(
9191
indexName,

0 commit comments

Comments
 (0)