xref: /aosp_15_r20/external/javassist/src/test/scoped/TestAnnotation.java (revision f1fbf3c2ab775ce834e0af96b7a85bdc7a0eac65)
1*f1fbf3c2SXin Li /*
2*f1fbf3c2SXin Li  * Javassist, a Java-bytecode translator toolkit.
3*f1fbf3c2SXin Li  * Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
4*f1fbf3c2SXin Li  *
5*f1fbf3c2SXin Li  * The contents of this file are subject to the Mozilla Public License Version
6*f1fbf3c2SXin Li  * 1.1 (the "License"); you may not use this file except in compliance with
7*f1fbf3c2SXin Li  * the License.  Alternatively, the contents of this file may be used under
8*f1fbf3c2SXin Li  * the terms of the GNU Lesser General Public License Version 2.1 or later,
9*f1fbf3c2SXin Li  * or the Apache License Version 2.0.
10*f1fbf3c2SXin Li  *
11*f1fbf3c2SXin Li  * Software distributed under the License is distributed on an "AS IS" basis,
12*f1fbf3c2SXin Li  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13*f1fbf3c2SXin Li  * for the specific language governing rights and limitations under the
14*f1fbf3c2SXin Li  * License.
15*f1fbf3c2SXin Li  */
16*f1fbf3c2SXin Li package scoped;
17*f1fbf3c2SXin Li 
18*f1fbf3c2SXin Li import java.lang.annotation.ElementType;
19*f1fbf3c2SXin Li import java.lang.annotation.Retention;
20*f1fbf3c2SXin Li import java.lang.annotation.RetentionPolicy;
21*f1fbf3c2SXin Li import java.lang.annotation.Target;
22*f1fbf3c2SXin Li 
23*f1fbf3c2SXin Li /**
24*f1fbf3c2SXin Li  * TestAnnotation.
25*f1fbf3c2SXin Li  *
26*f1fbf3c2SXin Li  * @author <a href="[email protected]">Adrian Brock</a>
27*f1fbf3c2SXin Li  * @version $Revision$
28*f1fbf3c2SXin Li  */
29*f1fbf3c2SXin Li @Retention(value = RetentionPolicy.RUNTIME)
30*f1fbf3c2SXin Li @Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR })
31*f1fbf3c2SXin Li public @interface TestAnnotation
32*f1fbf3c2SXin Li {
something()33*f1fbf3c2SXin Li    String something() default "defaultValue";
34*f1fbf3c2SXin Li }
35