xref: /aosp_15_r20/external/google-java-format/android-annotation-stubs/tmpl.java (revision 10816b529e1d7005ca788e7b4c5efd1c72957e26)
1*10816b52SSorin Basca /*
2*10816b52SSorin Basca  * Copyright (C) 2019 The Android Open Source Project
3*10816b52SSorin Basca  *
4*10816b52SSorin Basca  * Licensed under the Apache License, Version 2.0 (the "License");
5*10816b52SSorin Basca  * you may not use this file except in compliance with the License.
6*10816b52SSorin Basca  * You may obtain a copy of the License at
7*10816b52SSorin Basca  *
8*10816b52SSorin Basca  * http://www.apache.org/licenses/LICENSE-2.0
9*10816b52SSorin Basca  *
10*10816b52SSorin Basca  * Unless required by applicable law or agreed to in writing, software
11*10816b52SSorin Basca  * distributed under the License is distributed on an "AS IS" BASIS,
12*10816b52SSorin Basca  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*10816b52SSorin Basca  * See the License for the specific language governing permissions and
14*10816b52SSorin Basca  * limitations under the License.
15*10816b52SSorin Basca  */
16*10816b52SSorin Basca 
17*10816b52SSorin Basca package __PACKAGE__;
18*10816b52SSorin Basca 
19*10816b52SSorin Basca import java.lang.annotation.ElementType;
20*10816b52SSorin Basca import java.lang.annotation.Retention;
21*10816b52SSorin Basca import java.lang.annotation.RetentionPolicy;
22*10816b52SSorin Basca import java.lang.annotation.Target;
23*10816b52SSorin Basca 
24*10816b52SSorin Basca /* This is an annotation stub to avoid dependencies on annotations that aren't
25*10816b52SSorin Basca  * in the Android platform source tree. */
26*10816b52SSorin Basca 
27*10816b52SSorin Basca @Target({
28*10816b52SSorin Basca     ElementType.ANNOTATION_TYPE,
29*10816b52SSorin Basca     ElementType.CONSTRUCTOR,
30*10816b52SSorin Basca     ElementType.FIELD,
31*10816b52SSorin Basca     ElementType.LOCAL_VARIABLE,
32*10816b52SSorin Basca     ElementType.METHOD,
33*10816b52SSorin Basca     ElementType.PACKAGE,
34*10816b52SSorin Basca     ElementType.PARAMETER,
35*10816b52SSorin Basca     ElementType.TYPE,
36*10816b52SSorin Basca     ElementType.TYPE_PARAMETER,
37*10816b52SSorin Basca     ElementType.TYPE_USE})
38*10816b52SSorin Basca @Retention(RetentionPolicy.SOURCE)
39*10816b52SSorin Basca public @interface __CLASS__ {}
40