I added all your examples to a test method and committed it as well. Then, I activated -Xlint in Gradle:
compileTestJava {
options.compilerArgs += [
"-Xlint"
]
}
I run the test in question:
And this is the actual output:
As you can see, there are warning, but not for CriteriaCompilingTest. I'm also using Oracle JDK:
Can you paste the output that you get when running this test? |