Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3771

Improving Kafka code

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.0
    • Fix Version/s: 0.10.1.0
    • Component/s: core
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rekhajoshm Rekha Joshi
                Reporter:
                rekhajoshm Rekha Joshi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: