Skip to content

Comments

Reorder imports in some packages to conform checkstyle#8556

Merged
codelipenghui merged 2 commits intoapache:masterfrom
Renkai:broker-style
Nov 14, 2020
Merged

Reorder imports in some packages to conform checkstyle#8556
codelipenghui merged 2 commits intoapache:masterfrom
Renkai:broker-style

Conversation

@Renkai
Copy link
Contributor

@Renkai Renkai commented Nov 13, 2020

By the way, I found a way to set IDEA to optimize imports to automatically conform checkstyle, just set code style -> Java -> Imports -> Import layout like the picture below.

image

Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
@Renkai
Copy link
Contributor Author

Renkai commented Nov 13, 2020

/pulsarbot run-failure-checks

2 similar comments
@Renkai
Copy link
Contributor Author

Renkai commented Nov 13, 2020

/pulsarbot run-failure-checks

@Renkai
Copy link
Contributor Author

Renkai commented Nov 13, 2020

/pulsarbot run-failure-checks

@codelipenghui codelipenghui added this to the 2.7.0 milestone Nov 13, 2020
@Renkai
Copy link
Contributor Author

Renkai commented Nov 13, 2020

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit 1773274 into apache:master Nov 14, 2020
@Renkai Renkai deleted the broker-style branch November 15, 2020 15:01
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
sijie pushed a commit that referenced this pull request Nov 30, 2020
### Motivation
Some packages build fail due to `ImportOrder` check fail by checkstyle.  Although these packages are excluded in `suppressions.xml` but still got `ImportOrder` check fail in my environment.

### Modifications
Optimize imports for these package by IDEA using the Imports setting mentioned in #8556 
1. Remove the blank line between imports.
2. Reorder imports in  ascending
3. Remove exclude pacakge in `suppressions.xml`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants