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 2021/03/29 11:58:00 UTC

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

    [ https://issues.apache.org/jira/browse/KAFKA-10787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17310608#comment-17310608 ] 

Dongjin Lee commented on KAFKA-10787:
-------------------------------------

Converted into an umbrella issue in preference of an incremental approach. see: https://github.com/apache/kafka/pull/10428

> Introduce an import order in Java sources
> -----------------------------------------
>
>                 Key: KAFKA-10787
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10787
>             Project: Kafka
>          Issue Type: Improvement
>    Affects Versions: 2.8.0
>            Reporter: Dongjin Lee
>            Assignee: Dongjin Lee
>            Priority: Major
>
> 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)