• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package android.ravenwood.annotation;
17 
18 import static java.lang.annotation.ElementType.METHOD;
19 
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
23 
24 /**
25  * Denotes that the annotated method is unsupported on Ravenwood, and calling it will be a no-op.
26  * <p>
27  * Implementation included in the annotated method will be removed on Ravenwood, making it
28  * effectively a no-op. If the method returns a value, the value that is returned will be the
29  * "default" value for the type, meaning 0 for primitives types, and null for reference types.
30  *
31  * @hide
32  */
33 @Target({METHOD})
34 @Retention(RetentionPolicy.CLASS)
35 public @interface RavenwoodIgnore {
36     /**
37      * One or more classes that aren't yet supported by Ravenwood, which is why this method is
38      * being ignored.
39      */
blockedBy()40     Class<?>[] blockedBy() default {};
41 
42     /**
43      * General free-form description of why this method is being ignored.
44      */
reason()45     String reason() default "";
46 
47     /**
48      * Tracking bug number, if any.
49      */
bug()50     long bug() default 0;
51 }
52