auto import of any static member

Answered

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
Comment actions Permalink

Yes, you can disable that option.

0

Please sign in to leave a comment.