Skip to content

Commit

Permalink
Enable warnings during compilation
Browse files Browse the repository at this point in the history
Enabled all recommended warnings during compilation.

Warnigs are:

- rawtypes - warns about the use of raw types
- unchecked - warns about unchecked operations
- static – warns about the access to a static member from an instance member
- cast – warns about unnecessary casts
- serial – warns about serializable classes not having a serialversionUID
- fallthrough – warns about the falling through in a switch statement
  • Loading branch information
willyborankin committed Sep 14, 2023
1 parent 2ad8272 commit bb8b43a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ spotbugsTest {
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11


compileJava {
options.compilerArgs = ["-Xlint:all"]
options.failOnError = false
}

compileTestJava {
options.compilerArgs = ["-Xlint:all"]
options.failOnError = false
}


licenseHeaders.enabled = true

// The following check that have never be enabled in security
Expand Down

0 comments on commit bb8b43a

Please sign in to comment.