You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Rekha Joshi (JIRA)" <ji...@apache.org> on 2016/05/30 22:48:12 UTC

[jira] [Created] (KAFKA-3771) Improving Kafka code

Rekha Joshi created KAFKA-3771:
----------------------------------

             Summary: 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)