Index: base/android/jni_generator/SampleForTests.java |
diff --git a/base/android/jni_generator/SampleForTests.java b/base/android/jni_generator/SampleForTests.java |
index 3d354cbe861ba0dc02ec9f4fde6ff1103750de30..6f8b1ca627084d2ddd6c2de96175332923caf96f 100644 |
--- a/base/android/jni_generator/SampleForTests.java |
+++ b/base/android/jni_generator/SampleForTests.java |
@@ -78,6 +78,19 @@ class SampleForTests { |
@CalledByNativeUnchecked |
void methodThatThrowsException() throws Exception {} |
+ // The generator is not confused by inline comments: |
+ // @CalledByNative void thisShouldNotAppearInTheOutput(); |
+ // @CalledByNativeUnchecked public static void neitherShouldThis(int foo); |
+ |
+ /** |
+ * The generator is not confused by block comments: |
+ * @CalledByNative void thisShouldNotAppearInTheOutputEither(); |
+ * @CalledByNativeUnchecked public static void andDefinitelyNotThis(int foo); |
+ */ |
+ |
+ // String constants that look like comments don't confuse the generator: |
+ private String arrgh = "*/*"; |
+ |
//------------------------------------------------------------------------------------------------ |
// Java fields which are accessed from C++ code only must be annotated with @AccessedByNative to |
// prevent them being eliminated when unreferenced code is stripped. |