summaryrefslogtreecommitdiff
path: root/soong/error_prone.go
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2018-02-16 10:42:08 -0800
committerAndreas Gampe <agampe@google.com>2018-02-16 10:42:08 -0800
commit1abefcf7a05d585ea2b6a4605359150923c35cc0 (patch)
treebe2e21eaf0edb626a081dbe15f0728c0417ca7b8 /soong/error_prone.go
parent9800aaa3c08b9249fe5c2ed3e3f1c492d3842832 (diff)
downloaderror_prone-1abefcf7a05d585ea2b6a4605359150923c35cc0.tar.gz
Errorprone: Make RandomCast fatal
Switch RandomCast to error. Bug: 73539757 Test: m javac-check RUN_ERROR_PRONE=true Change-Id: Ia3abf9721aea296223acba3cd8ae677cb2a937f3
Diffstat (limited to 'soong/error_prone.go')
-rw-r--r--soong/error_prone.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/soong/error_prone.go b/soong/error_prone.go
index 7595c39..e8e78ec 100644
--- a/soong/error_prone.go
+++ b/soong/error_prone.go
@@ -78,6 +78,7 @@ func init() {
"-Xep:PreconditionsCheckNotNullPrimitive:ERROR",
"-Xep:ProtoFieldNullComparison:ERROR",
"-Xep:ProvidesMethodOutsideOfModule:ERROR",
+ "-Xep:RandomCast:ERROR",
"-Xep:RestrictedApiChecker:ERROR",
"-Xep:SelfAssignment:ERROR",
"-Xep:StreamToString:ERROR",