From 272d82ec235bf5c85cd782b5950b37aa9396c85a Mon Sep 17 00:00:00 2001 From: Michael Ernst Date: Fri, 26 Jun 2009 18:39:45 -0700 Subject: [PATCH] 6843077: JSR 308: Annotations on types Co-authored-by: Mahmood Ali Co-authored-by: Matt Papi Reviewed-by: jjg, mcimadamore, darcy --- .../share/classes/java/lang/annotation/ElementType.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/classes/java/lang/annotation/ElementType.java b/jdk/src/share/classes/java/lang/annotation/ElementType.java index 5aa7b409312..cec7ee630e0 100644 --- a/jdk/src/share/classes/java/lang/annotation/ElementType.java +++ b/jdk/src/share/classes/java/lang/annotation/ElementType.java @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -40,6 +40,12 @@ public enum ElementType { /** Class, interface (including annotation type), or enum declaration */ TYPE, + /** Uses of a type */ + TYPE_USE, + + /** type parameters */ + TYPE_PARAMETER, + /** Field declaration (includes enum constants) */ FIELD,