Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.