IntelliJ is importing classes declared with {@link ...}
inside JavaDoc when I call "Optimize imports ..." on my project.
How do I prevent that behaviour?
Disable File | Settings | Editor | General | Auto Import | Optimize imports on the fly. Normally you don't need to add imports manually, IDEA does it for you.
Quickly remove any unused imports and more. With the Optimize imports action (Ctrl+Alt+O), you can quickly remove any unused imports, merge imports from the same module, and optionally sort the import statements.
Use Alt + Enter for importing a single package or use Alt + Shift + Enter to auto import all the unambiguous packages in the current file.
Using wildcard imports in Java would not affect runtime performance of a Java program at all, but compile-time performance may be affected a little.
Go to Settings/Editor/Code Style/Java/Imports and select If not already imported for the Use fully qualified names in JavaDoc option.
That way fully qualified names should be preferred for links to classes in JavaDoc which are not already imported in the current file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With