summaryrefslogtreecommitdiffstats
path: root/tools/apilint
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2015-04-10 13:01:37 -0700
committerAdam Powell <adamp@google.com>2015-04-10 13:07:52 -0700
commit539ea12810f6373eed926d07b856ab76a8ae8355 (patch)
tree22ed5cfe2479518f959ae48a8374ffd026737ee6 /tools/apilint
parentd18c59b3e6d855e6a7ec12fd324791cd621a9b53 (diff)
downloadframeworks_base-539ea12810f6373eed926d07b856ab76a8ae8355.zip
frameworks_base-539ea12810f6373eed926d07b856ab76a8ae8355.tar.gz
frameworks_base-539ea12810f6373eed926d07b856ab76a8ae8355.tar.bz2
Relax apilint FW1 error to a warning
This rule was catching simple getters ("getIntent") as errors even if the method is a true property get method. Relax to warning until we can make this a bit more clever. Change-Id: If183ad5bdc076ce2252399d4abcc8a3a6cbb55c3
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 72ee343..df76bc9 100644
--- a/tools/apilint/apilint.py
+++ b/tools/apilint/apilint.py
@@ -518,7 +518,7 @@ def verify_intent_builder(clazz):
if m.name.startswith("create") and m.name.endswith("Intent"):
pass
else:
- error(clazz, m, "FW1", "Methods creating an Intent must be named createFooIntent()")
+ warn(clazz, m, "FW1", "Methods creating an Intent should be named createFooIntent()")
def verify_helper_classes(clazz):