I generate some code using CXF from a WSDL-file. When compiling the code with version "1.6.0_16" with the flag -Xlint I get the following warning:
warning: [cast] redundant cast to javax.xml.bind.JAXBElement<java.lang.Boolean>
[javac] this.r = ((JAXBElement<Boolean> ) value);
What does the warning mean, should I be worried? As I have generated and not written the code, what can I do to get rid of this specific warning?
No, you should not be worried, redundant casts are harmless.
It's common for generated code to compile with warnings, you generally just ignore them. Better yet, compile the generated code into a separate JAR, and reference that from your main code. That way, you don't need to recompile the generated code, and you won't see the warnings every time.