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

Introduce an import order in Java sources

    XMLWordPrintableJSON

Details

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

    Description

      As of present, Kafka uses a relatively strict code style for Java code, except import order. For this reason, the code formatting settings of every local dev environment are different from person to person, resulting in countless meaningless import order changes in the PR.

      This issue aims to define and apply a 3-group import order, like the following:

      1. Project packages: kafka., org.apache.kafka.
      2. Third Party packages: com., net., org.*
      3. Java packages: java., javax.

      Discussion Thread: https://lists.apache.org/thread.html/rf6f49c845a3d48efe8a91916c8fbaddb76da17742eef06798fc5b24d%40%3Cdev.kafka.apache.org%3E

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            gongxuanzhang xuanzhang gong
            dongjin Dongjin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: