summaryrefslogtreecommitdiff
path: root/tools/apilint
diff options
context:
space:
mode:
author Filip Pavlis <pavlis@google.com> 2016-11-29 19:06:17 +0000
committer Filip Pavlis <pavlis@google.com> 2016-11-29 19:21:21 +0000
commitdb234ef0ac1d1a7fec7d1f00ba37bbd7435e9893 (patch)
tree5e455b79969859e191211e58d09bf75e24d7e255 /tools/apilint
parent5962992e27e16280ffac7b4883b1c8446a1b55bf (diff)
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
Diffstat (limited to 'tools/apilint')
-rw-r--r--tools/apilint/apilint.py2
1 files changed, 1 insertions, 1 deletions
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]