Merge "Apilint: Enforce final builders"

This commit is contained in:
Adrian Roos
2019-02-28 09:57:22 +00:00
committed by Gerrit Code Review

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