aboutsummaryrefslogtreecommitdiffstats
path: root/lint
diff options
context:
space:
mode:
Diffstat (limited to 'lint')
-rw-r--r--lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java b/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java
index 1b2a251..a7c2de9 100644
--- a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java
+++ b/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java
@@ -51,6 +51,12 @@ public class ApiLookupTest extends AbstractCheckTest {
"<init>", "(I)V"));
}
+ public void test2() {
+ // Regression test:
+ // This used to return 11 because of some wildcard syntax in the signature
+ assertTrue(mDb.getCallVersion("java/lang/Object", "getClass", "()") <= 1);
+ }
+
@Override
protected Detector getDetector() {
fail("This is not used in the ApiDatabase test");