auto import of any static member


IDEA seems to auto-create static imports for any constant it finds anywhere

I consider this dangerous

e.g. you type cache.put (...)  and in reality your field is named myCache,

but IDEA silently inserts an autoimport to some public field named "cache" from anywhere on the classpath (!)


can it be turned off? I guess it's "add unambigous imports on the fly"?

1 comment

Yes, you can disable that option.


Please sign in to leave a comment.