jacek-lewandowski commented on code in PR #2064:
URL: https://github.com/apache/cassandra/pull/2064#discussion_r1073503101
##########
src/java/org/apache/cassandra/db/compaction/Scrubber.java:
##########
@@ -564,20 +565,27 @@ public ScrubResult(Scrubber scrubber)
/**
* During 2.x migration, under some circumstances rows might have gotten
duplicated.
* Merging iterator merges rows with same clustering.
- *
+ * <p>
* For more details, refer to CASSANDRA-12144.
*/
- private static class RowMergingSSTableIterator extends
WrappingUnfilteredRowIterator
+ private static class RowMergingSSTableIterator extends
UnmodifiableIterator<Unfiltered> implements WrappingUnfilteredRowIterator
Review Comment:
We do not have to supply anything, the Java's original implementation of
`Iterator.remove` is:
```
default void remove() {
throw new UnsupportedOperationException("remove");
}
```
`UnmodifiableIterator` just makes it final
--
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]