google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

Remove unneeded static imports

Open mernst opened this issue 3 years ago • 2 comments

google-java-format removes some but not all unneeded import statements. I suggest that it should remove more unneeded static imports.

As an example, in Error Prone file ASTHelpers.java, consider the line

import static com.google.errorprone.util.ASTHelpers.isStatic;

This is unnecessary because it is statically importing a method defined in the same file.

It would be nice if google-java-format removed the line.

mernst avatar Oct 12 '22 03:10 mernst

Hi @mernst - I am looking forward to contributing to this repo. Can you assign this to me?

ashmichheda avatar Nov 13 '23 01:11 ashmichheda

@ashmichheda I don't own this repository and cannot assign the issue to anyone. You don't need the issue assigned to you. You should just work on the issue and open a pull request when you have a fix.

mernst avatar Nov 13 '23 03:11 mernst