1 /* 2 * @(#)Override.java 1.5 04/02/09 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.lang; 9 10 import java.lang.annotation.*; 11 12 /** 13 * Indicates that a method declaration is intended to override a 14 * method declaration in a superclass. If a method is annotated with 15 * this annotation type but does not override a superclass method, 16 * compilers are required to generate an error message. 17 * 18 * @author Joshua Bloch 19 * @since 1.5 20 */ 21 @Target(ElementType.METHOD) 22 @Retention(RetentionPolicy.SOURCE) 23 public @interface Override { 24 } 25