google / google/google-java-format

Remove unneeded static imports

オープン
#844 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
6.2k
フォーク
937
平均マージ
6分
マージ済み PR(30日)
3

説明

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](https://github.com/google/error-prone/blob/1c38087e16210e1a4b739cb6a21565fc283e8532/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java#L27)

```java
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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。