kaivalnp commented on code in PR #16506:
URL: https://github.com/apache/lucene/pull/16506#discussion_r3846239756


##########
lucene/sandbox/src/java/org/apache/lucene/sandbox/codecs/dedup/DedupVectorValues.java:
##########
@@ -469,7 +475,7 @@ public int get(int ord) {
 
     @Override
     public FieldOrdToGroupOrd copy() {
-      return new FieldOrdToGroupOrdArrayList(fieldOrdToGroupOrd);
+      throw new UnsupportedOperationException("not meant for copying");

Review Comment:
   Yes, this is used during flush, and was never copied -- so I threw an 
exception instead.



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