Reputation: 1431
I am using the Jenkins warnings plugin to display compiler warnings. Problem is: The warnings I get from the Jenkins warnings plugin are different from the warnings I get in Eclipse.
e.g.
In Eclipse: I need an @SuppressWarnings("null")
In Jenkins: this annotation is marked as unnecessary
It looks like the warnings Plugin is using a different compiler compliance level than my Eclipse installation does.
In Eclipse I am using Compiler compliance level 1.6.
How can I find out and adjust the compliance level for Jenkins?
Or is there another explanation for the differing warnings?
Upvotes: 0
Views: 551
Reputation: 2070
Check the config of this job.Find the JDK checkbox, Is it default or sth else? Try to set it 1.6 and see.
Eclipse warnings can actually be customized. So I think the problem is that the eclipse compile warning settings are different with the Jenkins Compile settings.
You can try compile your code with javac
and see if you get the same warnings with that in eclipse,if not,it should be a eclipse config issue.
Upvotes: 2