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

Improving Kafka code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0.0
    • 0.10.1.0
    • core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: