Skip to content

Commit e518eec

Browse files
authored
Suppress the for-loop warnings since it is a conscious performance choice. (#118530) (#118537)
1 parent ddb9413 commit e518eec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
* Note: This class is performance sensitive, so we pay extra attention on the data structure usage and we avoid streams and iterators
6767
* when possible in favor of the classic for-i loops.
6868
*/
69+
@SuppressWarnings("ForLoopReplaceableByForEach")
6970
public class IndexNameExpressionResolver {
7071
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(IndexNameExpressionResolver.class);
7172

0 commit comments

Comments
 (0)