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

Use Java 7 features to improve code quality

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Once KAFKA-2316 is merged, we should take advantage of Java 7 features that improve code quality (readability, safety, etc.).

      Examples:

      • Diamond operator
      • Try with resources
      • Multi-catch
      • String in switch (maybe)
      • Suppressed exceptions (maybe)

      This issue is for simple and mechanical improvements. More complex changes should be considered in separate issues (using nio.2, new concurrency classes, etc.).

      Attachments

        1. KAFKA-2322.patch
          144 kB
          Ismael Juma

        Issue Links

          Activity

            People

              ijuma Ismael Juma
              ijuma Ismael Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: