Skip to content

Remove disable Xlint warning from gradle files. #40366

Closed
@martijnvg

Description

@martijnvg

There are a number of build.gradle files that specifically disable -Xlint warnings for both production and test code. This should be avoided, because that can mask real bugs.

The following build.gradle files should be checked:

If possible both compileJava.options.compilerArgs and compileTestJava.options.compilerArgs should be removed. Removing compileTestJava.options.compilerArgs can be difficult, for example because of many tests having raw types or unchecked checks. So at least we should try to remove compileJava.options.compilerArgs in each of the above mentioned files.

By default the build disables the following warning: -path, -serial, -options , -deprecation. So if one of those warnings are also mentioned in a build.gradle file then that can be removed.

If you like to fix one of the above gradle files then post a comment which file you like to fix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions