| Index: docs/android_accessing_cpp_enums_in_java.md
|
| diff --git a/docs/android_accessing_cpp_enums_in_java.md b/docs/android_accessing_cpp_enums_in_java.md
|
| index 4cc5fcfb2a16de5066f071b85299676cc713b336..fb3382e6a3394ab1c21343d6bda823608f7121ee 100644
|
| --- a/docs/android_accessing_cpp_enums_in_java.md
|
| +++ b/docs/android_accessing_cpp_enums_in_java.md
|
| @@ -70,15 +70,14 @@ class
|
| import java.lang.annotation.Retention;
|
| import java.lang.annotation.RetentionPolicy;
|
|
|
| - public class FooBar {
|
| - @IntDef({
|
| - A, B, C
|
| - })
|
| - @Retention(RetentionPolicy.SOURCE)
|
| - public @interface FooBarEnum {}
|
| - public static final int A = 0;
|
| - public static final int B = 1;
|
| - public static final int C = 1;
|
| + @IntDef({
|
| + FooBar.A, FooBar.B, FooBar.C
|
| + })
|
| + @Retention(RetentionPolicy.SOURCE)
|
| + public @interface FooBar {
|
| + int A = 0;
|
| + int B = 1;
|
| + int C = 1;
|
| }
|
| ```
|
|
|
| @@ -130,14 +129,14 @@ class
|
|
|
| ```java
|
| ...
|
| - public class CommentEnum {
|
| + public @interface CommentEnum {
|
| ...
|
| /**
|
| * This comment will be preserved.
|
| */
|
| - public static final int ONE = 0;
|
| - public static final int TWO = 1;
|
| - public static final int THREE = 2;
|
| + int ONE = 0;
|
| + int TWO = 1;
|
| + int THREE = 2;
|
| }
|
| ```
|
|
|
|
|