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

Commit 2886d307 authored by Adrian Roos's avatar Adrian Roos Committed by Gerrit Code Review
Browse files

Merge "Apilint: Enforce final builders"

parents 6c1f09f7 deb0ff2b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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."""