From b047e1aacfc2988bd72737f71aeb4bc848ada8ab Mon Sep 17 00:00:00 2001 From: Sunny Shao Date: Wed, 22 Nov 2023 12:11:29 +0800 Subject: [PATCH] Add a linter requiring Nullability Annotations -This linter only check Java source and its public methods. -Apply to method return type not primitives or void. -Apply to method parameters not primitives. Bug: 307770597 Test: manual test Change-Id: I372168fb7dbe6c45803994c931bb5d103cf66169 --- Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Android.bp b/Android.bp index 9b4cfde6e97..9c354501915 100644 --- a/Android.bp +++ b/Android.bp @@ -118,6 +118,10 @@ android_library { "telephony-common", "ims-common", ], + + lint: { + extra_check_modules: ["SettingsLibLintChecker"], + }, } platform_compat_config {