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. package java.lang;
  8. import java.lang.annotation.*;
  9. /**
  10. * Indicates that a method declaration is intended to override a
  11. * method declaration in a superclass. If a method is annotated with
  12. * this annotation type but does not override a superclass method,
  13. * compilers are required to generate an error message.
  14. *
  15. * @author Joshua Bloch
  16. * @since 1.5
  17. */
  18. @Target(ElementType.METHOD)
  19. @Retention(RetentionPolicy.SOURCE)
  20. public @interface Override {
  21. }