Skip to main content
Skip table of contents

Java Warnings

Enable Java compiler warnings in your build to see them in the pull requests:

In Maven

Enable the showWarnings and showDeprecation flags. Add the -Xlint:all flag to get all warnings. Check the javac manual if you only want to enable specific warnings.

CODE
<plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
        <encoding>UTF-8</encoding>
        <showDeprecation>true</showDeprecation>
        <showWarnings>true</showWarnings>
       <compilerArgs>-Xlint:all</compilerArgs>
    </configuration>
</plugin>

In Gradle

Add the -Xlint:all flag for the Java compiler to get all warnings. Check the javac manual if you only want to enable specific warnings.

CODE
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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.