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)