Skip to content

Commit

Permalink
Update not to use getFirst
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Oct 21, 2024
1 parent 379b34c commit 3e8d54b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void assertFails(Set<String> indices) {
nonOpV.validateIndices(indices);
assertWarnings(
"Index ["
+ indices.stream().filter(i -> i.startsWith(".") || i.startsWith("<.")).toList().getFirst()
+ indices.stream().filter(i -> i.startsWith(".") || i.startsWith("<.")).toList().get(0)
+ "] name begins with a dot (.), which is deprecated, and will not be allowed in a future Elasticsearch version."
);
}
Expand Down

0 comments on commit 3e8d54b

Please sign in to comment.