Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeUnusedImports fails in file with or without imports #318

Open
chresan opened this issue Nov 25, 2018 · 1 comment
Open

removeUnusedImports fails in file with or without imports #318

chresan opened this issue Nov 25, 2018 · 1 comment
Labels

Comments

@chresan
Copy link

@chresan chresan commented Nov 25, 2018

I started using spotless in a maven java project for the first time. I am getting an exception indicating that there are unused imports. I can strip down the file to be as simple as

package example;
public interface Test {
}

There are no imports at all, but still there is the removeUnusedImports error.

Full Stack trace:
spotless-stacktrace.txt

@nedtwigg nedtwigg added the bug label Dec 8, 2018
@nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented Dec 8, 2018

Perhaps a newline between the package and the class will fix it?

@nedtwigg nedtwigg added the easy label Feb 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
@nedtwigg @chresan and others
You can’t perform that action at this time.