MINOR: Remove usages of scala.collection.JavaConversions, and some typo fixes#5115
Conversation
scala.collection.JavaConversionsscala.collection.JavaConversions
ijuma
left a comment
There was a problem hiding this comment.
Thanks for the PR. One comment. Also worth mentioning the typos in the title since that ends up being most of the PR.
There was a problem hiding this comment.
Doesn't seem like calling toMap on every entry is a good idea.
There was a problem hiding this comment.
Is it on every entry? or once the whole props object?
In any case, I refactored it to look more like Scala.
scala.collection.JavaConversionsscala.collection.JavaConversions, and some typo fixes
vahidhashemian
left a comment
There was a problem hiding this comment.
@ijuma thanks for the feedback. Updated the title in the new commit.
Not sure if I got your point on the inline comment. Made an update anyway, please take a look. Thanks.
There was a problem hiding this comment.
Is it on every entry? or once the whole props object?
In any case, I refactored it to look more like Scala.
d09a3bb to
469954d
Compare
ijuma
left a comment
There was a problem hiding this comment.
I pushed a couple of trivial changes. LGTM after that. @vahidhashemian, do they look OK to you too?
|
Actually, it seems like we still use JavaConversions in InternalTopicIntegrationTest, KafkaEmbedded and EmbeddedKafkaCluster. Any reason why we can't replace those @vahidhashemian? |
10081a4 to
eca47fb
Compare
|
@ijuma, your updates look good. I had missed those other ones in the Java code. Removed them in the new commit. |
|
Retest this please |
Along with some typo fixes.
eca47fb to
9147d4c
Compare
|
I think the failure was related to this hotfix. I did a rebase. |
|
Retest this please |
|
Sorry, forgot to pull your earlier commit :( |
Reviewers: Ismael Juma <ismael@juma.me.uk>
Committer Checklist (excluded from commit message)