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

Commit db234ef0 authored by Filip Pavlis's avatar Filip Pavlis
Browse files

Adds keyword "default" to the API-linter.

This will fix issue when linting Java 8 default methods on interfaces,
e.g. Ie46a876dcb14b46b8b2584735c106c25655ec6cf.

Test: Manualy tried that the linter no longer gives the error.

Change-Id: I68ade6ba6401439667408076a5454caef77ef72d
parent 5962992e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ class Method():
            while r in raw: raw.remove(r)
        self.split = list(raw)

        for r in ["method", "public", "protected", "static", "final", "deprecated", "abstract"]:
        for r in ["method", "public", "protected", "static", "final", "deprecated", "abstract", "default"]:
            while r in raw: raw.remove(r)

        self.typ = raw[0]