1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
This import is unused.
## The check reported an import that was actually used!
The check has no known bugs. If it reports an unused import that looks like it
was actually used, try removing it and recompiling. If everything still
compiles, it was unused.
Note that the check can detect some unused imports that `google-java-format`
cannot. The formatter looks at a single file at a time, so `RemoveUnusedImports`
is more accurate in examples like the following:
```java
package a;
import b.Baz; // this is unused!
class Foo extends Bar {
Baz baz; // this is a.Bar.Baz (from the supertype), *not* b.Baz
}
```
```java
package a;
class Bar {
class Baz {}
}
```
```java
package b;
class Baz {}
```
|