/
Java Warnings
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.
<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.
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.
, multiple selections available,
Related content
Checkstyle Analysis Results
Checkstyle Analysis Results
More like this
PMD Analysis Results
PMD Analysis Results
More like this
Show Code Analysis in PR
Show Code Analysis in PR
Read with this
Scala Warnings
Scala Warnings
More like this
TypeScript Compiler Errors
TypeScript Compiler Errors
More like this
Pull Request Detail
Pull Request Detail
More like this