It has been very annoying not being able to configure exclusions for compiler warnings in eclipse. In many projects, there are auto-generated files that do not comply to any coding standards and our ‘Problems’ perspective is bloated with warnings that are not interesting at all. Worst is that developers stop looking at compile warnings as it’s impossible to distinguish between real and bogus stuff there. But there is a solution now. This is mainly interesting for Android developers and server developers working with e.g. SOAP. Basically any src folder can be excluded now.
Feature is called: ‘Ignore optional compile problems’ and is available from eclipse build 3.8/4.2 M6.
From eclipse site:
“Have you ever been overwhelmed by thousands of potentially unimportant warnings in your Java project?”
“Have you ever tried to avoid excessive error reporting from a source folder containing auto-generated code?”
“Have you ever looked for a specific problem and could not find it because it drowned somewhere in the Problems view?”
“If answer to any of the above questions is ‘Yes’, then there’s good news for you! Finally, there is an option to ignore all configurable compile problems just a few clicks away!”
They sum it in a good way. Bellow are the steps how to configure your project source:
You can turn on the new ‘Ignore optional compile problems‘ option for each source folder available in your Java project. To do that, go to Project properties > Java Build Path > Source and toggle the value of ‘Ignore optional compile problems’ to Yes. With this option set to ‘Yes’, JDT compiler will suppress errors and warnings configured in the Preferences > Java > Compiler > Errors/Warnings page.