To get Enable Java compiler warnings from build logs, enable warning options of the Java compiler.in your build to see them in the pull requests:
Table of Contents |
---|
In Maven
...
Code Block |
---|
tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:all" } |
In Javac
Use the -Xlint:all
flag for the Java compiler to get all warnings. Check the javac manual if you only want to enable specific warnings.