Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a17acd7f authored by Makoto Onuki's avatar Makoto Onuki Committed by Android Build Cherrypicker Worker
Browse files

Allow to add a bug number to ravenwood annotations

Flag: EXEMPT host test change only
Bug: 292141694
Test: treehugger
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7aca35e22dd73d7277821f46dd1869777cafe507)
Merged-In: I50389646482067671f1df6f159561e9058eca4e3
Change-Id: I50389646482067671f1df6f159561e9058eca4e3
parent 42ebed4a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -35,4 +35,18 @@ import java.lang.annotation.Target;
@Target({TYPE, FIELD, METHOD, CONSTRUCTOR})
@Retention(RetentionPolicy.CLASS)
public @interface RavenwoodRemove {
    /**
     * One or more classes that aren't yet supported by Ravenwood, which is why this method throws.
     */
    Class<?>[] blockedBy() default {};

    /**
     * General free-form description of why this method throws.
     */
    String reason() default "";

    /**
     * Tracking bug number, if any.
     */
    long bug() default 0;
}
+5 −0
Original line number Diff line number Diff line
@@ -42,4 +42,9 @@ public @interface RavenwoodReplace {
     * General free-form description of why this method is being replaced.
     */
    String reason() default "";

    /**
     * Tracking bug number, if any.
     */
    long bug() default 0;
}
+5 −0
Original line number Diff line number Diff line
@@ -43,4 +43,9 @@ public @interface RavenwoodThrow {
     * General free-form description of why this method throws.
     */
    String reason() default "";

    /**
     * Tracking bug number, if any.
     */
    long bug() default 0;
}
+5 −0
Original line number Diff line number Diff line
@@ -51,4 +51,9 @@ public @interface DisabledOnRavenwood {
     * General free-form description of why this test is being ignored.
     */
    String reason() default "";

    /**
     * Tracking bug number, if any.
     */
    long bug() default 0;
}
+5 −0
Original line number Diff line number Diff line
@@ -51,4 +51,9 @@ public @interface IgnoreUnderRavenwood {
     * General free-form description of why this test is being ignored.
     */
    String reason() default "";

    /**
     * Tracking bug number, if any.
     */
    long bug() default 0;
}