Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 606210ec authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Merge "Apilint: Enforce final builders" am: 2886d307 am: bb74d557

am: 77864f7d

Change-Id: I9e3684b3a4548350e006b27f5d13f8fafb766075
parents 82fd15cb 77864f7d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1109,6 +1109,9 @@ def verify_builder(clazz):
    if not has_build:
    if not has_build:
        warn(clazz, None, None, "Missing build() method")
        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):
def verify_aidl(clazz):
    """Catch people exposing raw AIDL."""
    """Catch people exposing raw AIDL."""