diff options
| author | 2019-03-05 16:29:15 -0800 | |
|---|---|---|
| committer | 2019-03-05 16:29:15 -0800 | |
| commit | 56630bdc7732f3a3d20f15e782e22e99e26a4903 (patch) | |
| tree | 6c8e19cc9bef400b9728e9e190495900d9821130 | |
| parent | 5eae9a4096bb4d9825aad9894ef161accabbc150 (diff) | |
| parent | 834803b3e2a7105fa3e12c529a33b5bf52e01064 (diff) | |
Merge "Apilint: No longer flag interface callbacks" am: 26968d81f8
am: 834803b3e2
Change-Id: Ib1825b1e190df752e901424a89e30b78261f4c82
| -rw-r--r-- | tools/apilint/apilint.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/apilint/apilint.py b/tools/apilint/apilint.py index 75aeb5e2b288..a91fbe76be8d 100644 --- a/tools/apilint/apilint.py +++ b/tools/apilint/apilint.py @@ -826,7 +826,6 @@ def verify_method_names(clazz): @verifier def verify_callbacks(clazz): """Verify Callback classes. - All callback classes must be abstract. All methods must follow onFoo() naming style.""" if clazz.fullname == "android.speech.tts.SynthesisCallback": return @@ -836,9 +835,6 @@ def verify_callbacks(clazz): warn(clazz, None, "L1", "Class should be named FooCallback") if clazz.name.endswith("Callback"): - if "interface" in clazz.split: - error(clazz, None, "CL3", "Callbacks must be abstract class to enable extension in future API levels") - for m in clazz.methods: if not re.match("on[A-Z][a-z]*", m.name): error(clazz, m, "L1", "Callback method names must be onFoo() style") |