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


##########
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:
   ```suggestion
           int idx = indexOf(value);
           if (idx == -1) throw new IllegalArgumentException("Unable to find 
value " + value);
           return get(idx);
   ```



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