Migrate Consumer varargs TopicPartition methods to take a Collection
ProprietaryKafka 0.10.0 changed Consumer.seekToBeginning, seekToEnd, pause and resume from taking TopicPartition... to taking a Collection<TopicPartition>. Wraps the partitions in Collections.singletonList or Arrays.asList, and passes Collections.emptyList() for a call without partitions, which keeps its meaning.
io. moderne. kafka. MigrateConsumerVarargsToCollectionmod run . --recipe= io. moderne. kafka. MigrateConsumerVarargsToCollectionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.