PIE-1505 - Build broken in Java 12 (#1263)

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.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Danno Ferrin 6 years ago committed by GitHub
parent dcc459aba5
commit a46073e833
  1. 5
      build.gradle

@ -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)
}

Loading…
Cancel
Save