Can an eclipse prevent the use of certain classes?

For example,

  • I do not want to use org.testng.v6.Maps, (I want com.google.common.collect.Maps)
  • I do not want to use org.hibernate.mapping.List, (I want java.util.Listlike everyone else!)

Is there any way to tell Eclipse not to offer them in the autocomplete field?

+5
source share
2 answers

Yup - I have this problem for several classes as well.

Settings β†’ Java β†’ Appearance β†’ Type Filters.

+13
source

Reinstall your dependencies in the library path according to the order in which you want.

  • Right click on project> Properties
  • Java build path
  • Order and Export tab

, . (, -, , .)

0

All Articles