AnnotationType.java revision 3233:b5d08bc0d224
110015Speter/* 212496Speter * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 310015Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 410015Speter * 510015Speter * This code is free software; you can redistribute it and/or modify it 610015Speter * under the terms of the GNU General Public License version 2 only, as 710015Speter * published by the Free Software Foundation. 810015Speter * 910015Speter * This code is distributed in the hope that it will be useful, but WITHOUT 1010015Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1110015Speter * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1210015Speter * version 2 for more details (a copy is included in the LICENSE file that 1310015Speter * accompanied this code). 1410015Speter * 1510015Speter * You should have received a copy of the GNU General Public License version 1610015Speter * 2 along with this work; if not, write to the Free Software Foundation, 1710015Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1810015Speter * 1910015Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2010015Speter * or visit www.oracle.com if you need additional information or have any 2110015Speter * questions. 2210015Speter */ 2310015Speter 2410015Speterpackage pkg; 2510015Speter 2610015Speterimport java.lang.annotation.*; 2710015Speter 2810015Speter/** 2910015Speter * This is just a test annotation type. 3010015Speter * 3110015Speter * @author Jamie Ho. 3210015Speter * @since 1.5 3316575Speter */ 3410015Speter@Documented public @interface AnnotationType { 3510015Speter 3610015Speter /** 3716322Sgpalmer * The copyright holder. 3816322Sgpalmer */ 3916322Sgpalmer String optional() default "unknown"; 4010015Speter 4110015Speter /** 4210015Speter * The year of the copyright. 4310015Speter */ 4410015Speter int required(); 4510015Speter} 4610015Speter