Skip to content

Commit

Permalink
PIE-1505 - Build broken in Java 12 (PegaSysEng#1263)
Browse files Browse the repository at this point in the history
There is one check that has issues in Java 12 and has yet to be fixed.
Disable it when we detect we are being built on Java 12.
  • Loading branch information
shemnon authored and notlesh committed May 4, 2019
1 parent 379f945 commit e486e49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ allprojects {
// Lazy impl causes excess CPU usage O(n) of non-final fiield when it should be O(1).
check('FieldCanBeFinal', CheckSeverity.OFF)

// This check is broken in Java 12. See https://github.com/google/error-prone/issues/1257
if ((JavaVersion.current().majorVersion as Integer) > 11) {
check('Finally', CheckSeverity.OFF)
}

check('InsecureCryptoUsage', CheckSeverity.WARN)
check('WildcardImport', CheckSeverity.WARN)
}
Expand Down

0 comments on commit e486e49

Please sign in to comment.