I have a Java project, which is a combination of human-written Java code and Java code created by an axis.
The axis-generated code generates thousands of warnings from the Java compiler (either javac or the built-in Eclipse). Examples of warnings: dead code, the use of raw lists and array types preceding Java generics, etc. (More at http://www.coderanch.com/t/501752/Web-Services/java/Axis-Generate-without-Warnings ). I would like to shut up and ignore these specific warnings in the generated code, but not in human code.
I saw How to add the -Xlint: unchecked option or any javac option in Eclipse? , and this allows me to turn off the corresponding warnings through Window-> Preferences, but the workspace, which is not what I want. Is there a way to do this based on each project?
If not, how do people deal with generated code without ignoring warnings that would be helpful to people?
source
share