Index: base/android/jni_generator/jni_generator.py |
diff --git a/base/android/jni_generator/jni_generator.py b/base/android/jni_generator/jni_generator.py |
index 7aff0968d3a1f79953153588a4f7c88ab4ddb301..007fedf77fe0138aa3cc3c5722def6bda287a76a 100755 |
--- a/base/android/jni_generator/jni_generator.py |
+++ b/base/android/jni_generator/jni_generator.py |
@@ -518,6 +518,7 @@ RE_SCOPED_JNI_TYPES = re.compile('jobject|jclass|jstring|jthrowable|.*Array') |
RE_CALLED_BY_NATIVE = re.compile( |
'@CalledByNative(?P<Unchecked>(Unchecked)*?)(?:\("(?P<annotation>.*)"\))?' |
'\s+(?P<prefix>[\w ]*?)' |
+ '(:?\s*@\w+)?' # Ignore annotations in return types. |
'\s*(?P<return_type>\S+?)' |
'\s+(?P<name>\w+)' |
'\s*\((?P<params>[^\)]*)\)') |