From 3d91ba0bc66e44d500671e3d5c68baab351346b7 Mon Sep 17 00:00:00 2001 From: Srikanth Adayapalam Date: Sat, 28 May 2016 09:47:28 +0530 Subject: [PATCH] 8033812: javadoc for java.lang.annotation.ElementType needs minor correction Fix incorrect count of type contexts. Reviewed-by: mcimadamore --- .../share/classes/java/lang/annotation/ElementType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/java.base/share/classes/java/lang/annotation/ElementType.java b/jdk/src/java.base/share/classes/java/lang/annotation/ElementType.java index 4590f39edd1..c32ae6a0f15 100644 --- a/jdk/src/java.base/share/classes/java/lang/annotation/ElementType.java +++ b/jdk/src/java.base/share/classes/java/lang/annotation/ElementType.java @@ -46,7 +46,7 @@ package java.lang.annotation; * {@code @Target(ElementType.FIELD)} may only be written as a modifier for a * field declaration. * - *

The constant {@link #TYPE_USE} corresponds to the 15 type contexts in JLS + *

The constant {@link #TYPE_USE} corresponds to the type contexts in JLS * 4.11, as well as to two declaration contexts: type declarations (including * annotation type declarations) and type parameter declarations. *