Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: docs/android_accessing_cpp_enums_in_java.md

Issue 2877743002: 📱 Cleanup definition of ActivityState and ApplicationStatus warnings (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/java/src/org/chromium/base/ApplicationStatus.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
```
« no previous file with comments | « base/android/java/src/org/chromium/base/ApplicationStatus.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698