Merge "Apilint: Enforce final builders" am: 2886d307bd

am: bb74d55781

Change-Id: I6eeec8fed36c1c9c950395a834eaa33e31fbaea2
This commit is contained in:
Adrian Roos
2019-02-28 02:19:28 -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."""