blerer commented on code in PR #2655:
URL: https://github.com/apache/cassandra/pull/2655#discussion_r1379012116


##########
src/java/org/apache/cassandra/cql3/Sets.java:
##########
@@ -434,9 +311,7 @@ public void execute(DecoratedKey partitionKey, 
UpdateParameters params) throws I
                 return;
 
             // This can be either a set or a single element
-            Set<ByteBuffer> toDiscard = value instanceof Sets.Value
-                                      ? ((Sets.Value)value).elements
-                                      : Collections.singleton(value.get());
+            List<ByteBuffer> toDiscard = value.getElements();

Review Comment:
   It is not needed anymore `getElements` does the same thing. If it is a Sets 
it returns the elements otherwise it returns a list containing the element.  



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