Skip to content

Commit 5096fca

Browse files
gmaroulimaxhniebergall
authored andcommitted
Suppress the for-loop warnings since it is a conscious performance choice. (elastic#118530) (elastic#118537)
1 parent d950ce2 commit 5096fca

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

+1
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)