[ https://issues.apache.org/jira/browse/KAFKA-3771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306997#comment-15306997 ]
ASF GitHub Bot commented on KAFKA-3771: --------------------------------------- GitHub user rekhajoshm opened a pull request: https://github.com/apache/kafka/pull/1451 KAFKA-3771; Improving Kafka core code - Used flatMap instead of map and flatten - Use isEmpty, NonEmpty, isDefined as appropriate - Used head, keys and keySet where appropriate - Used contains, diff and find where appropriate - Removed redundant val modifier for case class constructor - toString has no parameters, no side effect hence without () consistent usage - Removed unnecessary return , parentheses and semi colons. You can merge this pull request into a Git repository by running: $ git pull https://github.com/rekhajoshm/kafka KAFKA-3771 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1451.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1451 ---- commit c9a66992b1095616f87c5748f210b973ebc7eb01 Author: Rekha Joshi <rekhajo...@gmail.com> Date: 2016-05-26T17:48:37Z Merge pull request #2 from apache/trunk Apache Kafka trunk pull commit 8d7fb005cb132440e7768a5b74257d2598642e0f Author: Rekha Joshi <rekhajo...@gmail.com> Date: 2016-05-30T21:37:43Z Merge pull request #3 from apache/trunk Apache Kafka trunk pull commit 7b3273de9d7310695701bd2407992d6c69517f47 Author: Joshi <rekhajo...@gmail.com> Date: 2016-05-30T23:00:58Z KAFKA-3771; Improving Kafka core code ---- > Improving Kafka code > -------------------- > > Key: KAFKA-3771 > URL: https://issues.apache.org/jira/browse/KAFKA-3771 > Project: Kafka > Issue Type: Improvement > Components: core > Affects Versions: 0.10.0.0 > Reporter: Rekha Joshi > Assignee: Rekha Joshi > > Improve Kafka core code : > Remove redundant val modifier for case class constructor > Use flatMap instead of map and flatten > Use isEmpty, NonEmpty, isDefined as appropriate > Use head, keys and keySet where appropriate > Use contains, diff and find where appropriate > toString has no parameters, no side effect hence without () use consistently > Remove unnecessary return and semi colons, parentheses -- This message was sent by Atlassian JIRA (v6.3.4#6332)