Merge "Apilint: Enforce final builders"

am: 2886d307bd

Change-Id: I065ff3fede26d527860606ee60b2b6ca8a6d4fbd
This commit is contained in:
Adrian Roos
2019-02-28 02:10:24 -08:00
committed by android-build-merger

View File

@@ -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."""