Thursday, April 28, 2022

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

Issue

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.



Answered By - Isaac Truett
Answer Checked By - Katrina (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.