diff options
author | 2019-02-28 09:57:22 +0000 | |
---|---|---|
committer | 2019-02-28 09:57:22 +0000 | |
commit | 2886d307bdd507e35e4005636a466ea08fe699bd (patch) | |
tree | 523140ee0ec3f7e71ea0a4dad5f5c477d491a002 /tools/apilint/apilint.py | |
parent | 6c1f09f77ea7155c8c5c0a1b604f52721401ccc2 (diff) | |
parent | deb0ff2bf4b7a3ffc7440fffc22772dbeca991ea (diff) |
Merge "Apilint: Enforce final builders"
Diffstat (limited to 'tools/apilint/apilint.py')
-rw-r--r-- | tools/apilint/apilint.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/apilint/apilint.py b/tools/apilint/apilint.py index 4c02d94542d0..ef405e4b1343 100644 --- a/tools/apilint/apilint.py +++ b/tools/apilint/apilint.py @@ -1109,6 +1109,9 @@ def verify_builder(clazz): if not has_build: warn(clazz, None, None, "Missing build() method") + if "final" not in clazz.split: + error(clazz, None, None, "Builder should be final") + def verify_aidl(clazz): """Catch people exposing raw AIDL.""" |