You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Dongjin Lee (Jira)" <ji...@apache.org> on 2020/12/01 06:08:00 UTC

[jira] [Created] (KAFKA-10787) Introduce an import order in Java sources

Dongjin Lee created KAFKA-10787:
-----------------------------------

             Summary: Introduce an import order in Java sources
                 Key: KAFKA-10787
                 URL: https://issues.apache.org/jira/browse/KAFKA-10787
             Project: Kafka
          Issue Type: Improvement
            Reporter: Dongjin Lee
            Assignee: Dongjin Lee


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)