Exclude packages from Eclipse's organize imports

后端 未结 1 343
旧时难觅i
旧时难觅i 2021-01-19 10:29

There are certain classes, such as Closeable, File and Container, that have doppelgänger classes in obscure packages that I am extreme

1条回答
  •  无人共我
    2021-01-19 10:32

    I don't see, for example, the com.sun.*.Closeable in your example when I use ContentAssist or Organize Imports. I think where you want to configure it is in Preferences > Java > Appearance > Type Filters. However, I don't have com.sun.* listed in my filter list. Maybe it's the "Hide forbidden references" option.

    enter image description here

    0 讨论(0)
提交回复
热议问题