Files
openide/java/java-tests/testData/psi/optimizeImports/OptimizeImportNotOnTheFlyInvalidStaticImportResolveToFieldViaThis.java
Georgii Ustinovandintellij-monorepo-bot 4a5055e208 [Java] IDEA-384756 Add test for removing invalid static import when there is direct access to the field or method
Space-RevId: 3fff76e0ff65e8071019aa26032468a179a56c2e

GitOrigin-RevId: 7c640be7e1a0264b741a430a78df4bd3e43abb54
2026-01-22 17:23:45 +00:00

9 lines
247 B
Java

<warning descr="Unused import statement">import static foo.Util.<error descr="Cannot resolve symbol 'baz'">baz</error>;</warning>
class Test {
Object baz = null;
void test() {
<error descr="Method call expected">this.baz()</error>;
}
}