Need help in checkstyle error

i am getti g this error
[ant:checkstyle] [ERROR] /home/crio-user/workspace/yuvakishore1-9k-ME_QMONEY/qmoney/src/main/java/com/crio/warmup/stock/PortfolioManagerApplication.java:7: ‘com.crio.warmup.stock.dto.AnnualizedReturn’ should be separated from previous import group by one line. [CustomImportOrder]
tried adding lines didn’t work.how to surpass this??

Please use the below link for reference.
https://forum.crio.do/t/how-do-i-resolve-checkstyle-issues-efficiently/7104/2
Let me know if it was helpful or not.

“should be separated from previous import group by one line”, this line is telling you what to do please read it carefully.

tried everything!!! didn’t work

Hey this means that you have to separate your import statements by only one line.
To be exact, from your screenshot, your package name and import name should have only one line separated between them.
Remove the extra lines.
Should solve this error.

1 Like