From db234ef0ac1d1a7fec7d1f00ba37bbd7435e9893 Mon Sep 17 00:00:00 2001 From: Filip Pavlis Date: Tue, 29 Nov 2016 19:06:17 +0000 Subject: 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 --- tools/apilint/apilint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/apilint') diff --git a/tools/apilint/apilint.py b/tools/apilint/apilint.py index ca2d2e75ee89..6ca59b0fb93b 100644 --- a/tools/apilint/apilint.py +++ b/tools/apilint/apilint.py @@ -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] -- cgit v1.2.3-59-g8ed1b