Search code examples
eclipseeclipse-pluginwarnings

How to turn off Eclipse warning "The import is never used"?


I have a lot of this warnings in project and I would like to turn it off. I'm not interested in removing those imports, so please don't tell me how to do it.

I'm using eclipse 3.4.2.


Solution

  • To change for the entire workspace:

    Window > Preferences > Java > Compiler > Errors/Warnings > Unused Import > Ignore.

    To override workspace settings for a single project:

    Project > Properties > Java Compiler > Errors/Warnings > Unused Import > Ignore.