Skip to content

Commit

Permalink
fix: missing locale in String.format
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Dec 12, 2024
1 parent e88fdff commit 085e023
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private static Request bulkRequest(final String indexName, int numberOfDocuments
final StringBuilder sb = new StringBuilder();

for (int i = 0; i < numberOfDocuments; i++) {
sb.append(String.format("{ \"index\": { \"_id\": \"%d\" } }\n{ \"name\": \"%s\" }\n", i + 1, randomFrom(NAMES)));
sb.append(String.format(Locale.ROOT, "{ \"index\": { \"_id\": \"%d\" } }\n{ \"name\": \"%s\" }\n", i + 1, randomFrom(NAMES)));
}

final Request request = new Request("POST", "/" + indexName + "/_bulk");
Expand Down

0 comments on commit 085e023

Please sign in to comment.