maedhroz commented on code in PR #4412:
URL: https://github.com/apache/cassandra/pull/4412#discussion_r2709811139


##########
test/unit/org/apache/cassandra/utils/ImmutableUniqueList.java:
##########
@@ -95,6 +95,11 @@ public T get(int index)
         return values[index];
     }
 
+    public T get(T value)
+    {
+        return get(indexOf(value));

Review Comment:
   nit: I'm guessing the possibility `indexOf()` returns `-1` was taken into 
account here. `IOOBE` isn't the best exception, but throwing something more 
descriptive isn't the most important thing in the world for test code.



-- 
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