From b4598567fc112edffba6c688e6d9b602b3dce6c3 Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Thu, 23 Nov 2023 20:23:26 +0800 Subject: [PATCH] Re-enable nullaway plugin Bug: 307330031 Test: make Settings RUN_ERROR_PRONE=true Change-Id: I6445b588f11bc01e6d885f73ffa35329b5db2ab2 --- Android.bp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Android.bp b/Android.bp index b456a72170a..9b4cfde6e97 100644 --- a/Android.bp +++ b/Android.bp @@ -107,13 +107,12 @@ android_library { plugins: ["androidx.room_room-compiler-plugin"], - // TODO: b/307330031 - Re-enable the nullaway plugin when the issue is fixed. - // errorprone: { - // extra_check_modules: ["//external/nullaway:nullaway_plugin"], - // javacflags: [ - // "-XepOpt:NullAway:AnnotatedPackages=com.android.settings", - // ], - // }, + errorprone: { + extra_check_modules: ["//external/nullaway:nullaway_plugin"], + javacflags: [ + "-XepOpt:NullAway:AnnotatedPackages=com.android.settings", + ], + }, libs: [ "telephony-common",