uschindler commented on code in PR #15109:
URL: https://github.com/apache/lucene/pull/15109#discussion_r2293523215


##########
lucene/core/src/test/org/apache/lucene/internal/hppc/TestLongArrayList.java:
##########
@@ -279,7 +279,7 @@ public void testIterable() {
 
     count = 0;
     list.resize(0);
-    for (@SuppressWarnings("unused") LongCursor cursor : list) {
+    for (LongCursor _ : list) {

Review Comment:
   this is funny, but the test obviously only wants to count here to comapre 
the result of counting the iterable and compare it with real size.
   
   As we check for "0 length" here, we could replace the whole loop with a 
simple `assertFalse(list.iterator().hasNext()`.
   
   But let's keep this for now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to