Mercurial > hg > openjdk > jdk8 > jdk
changeset 6096:599f231cba97
8001598: Augment ElementType enum for JSR 308
Reviewed-by: darcy
author | jfranck |
---|---|
date | Wed, 07 Nov 2012 17:39:34 -0800 |
parents | cc325832469c |
children | cdf02b372956 |
files | src/share/classes/java/lang/annotation/ElementType.java |
diffstat | 1 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/lang/annotation/ElementType.java Wed Nov 07 15:08:28 2012 -0800 +++ b/src/share/classes/java/lang/annotation/ElementType.java Wed Nov 07 17:39:34 2012 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2012, Oracle and/or its affiliates. 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 @@ -46,7 +46,7 @@ /** Method declaration */ METHOD, - /** Parameter declaration */ + /** Formal parameter declaration */ PARAMETER, /** Constructor declaration */ @@ -59,5 +59,19 @@ ANNOTATION_TYPE, /** Package declaration */ - PACKAGE + PACKAGE, + + /** + * Type parameter declaration + * + * @since 1.8 + */ + TYPE_PARAMETER, + + /** + * Use of a type + * + * @since 1.8 + */ + TYPE_USE }