Cleanup of doclint warnings in java.lang.{annotation, reflect} (original) (raw)

Joe Darcy joe.darcy at oracle.com
Sun Jun 16 23:34:33 UTC 2013


Hello,

Please review the diff below of changes to get java.lang.annotation and java.lang.reflect clean on doclint warnings.

I soon plan to send out another patch to cleanup java.lang; I'll file one or more bugs to cover this work depending on how reviews come in.

Thanks,

-Joe

diff -r 45a3584bfacf src/share/classes/java/lang/annotation/Annotation.java --- a/src/share/classes/java/lang/annotation/Annotation.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/annotation/Annotation.java Sun Jun 16 16:34:09 2013 -0700 @@ -1,5 +1,5 @@ /*

present * @param annotationClass the Class object corresponding to the * annotation type * @return this element's annotation for the specified annotation type if @@ -154,6 +155,7 @@ * The caller of this method is free to modify the returned array; it will * have no effect on the arrays returned to other callers. *

present * @param annotationClass the Class object corresponding to the * annotation type * @return all this element's annotations for the specified annotation type if @@ -184,6 +186,7 @@ * This method ignores inherited annotations. (Returns null if no * annotations are directly present on this element.) *

present * @param annotationClass the Class object corresponding to the * annotation type * @return this element's annotation for the specified annotation type if @@ -209,6 +212,8 @@ * The caller of this method is free to modify the returned array; it will * have no effect on the arrays returned to other callers. *

annotation type if diff -r 45a3584bfacf src/share/classes/java/lang/reflect/Executable.java --- a/src/share/classes/java/lang/reflect/Executable.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/reflect/Executable.java Sun Jun 16 16:34:09 2013 -0700 @@ -384,6 +384,8 @@ /** * Returns a string describing this {@code Executable}, including * any type parameters.

@@ -496,6 +498,8 @@ * If this Executable represents a method, the AnnotatedType object * represents the use of a type to specify the return type of the method. *

@@ -531,6 +535,9 @@ * * Returns null if this Executable represents a static method. *

@@ -553,6 +560,9 @@ * Returns an array of length 0 if the method/constructor declares no * parameters. *

@@ -575,6 +585,9 @@ * Returns an array of length 0 if the method/constructor declares no * exceptions. *

diff -r 45a3584bfacf src/share/classes/java/lang/reflect/Field.java --- a/src/share/classes/java/lang/reflect/Field.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/reflect/Field.java Sun Jun 16 16:34:09 2013 -0700 @@ -1151,7 +1151,9 @@ /** * Returns an AnnotatedType object that represents the use of a type to specify * the declared type of the field represented by this Field.

diff -r 45a3584bfacf src/share/classes/java/lang/reflect/Parameter.java --- a/src/share/classes/java/lang/reflect/Parameter.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/reflect/Parameter.java Sun Jun 16 16:34:09 2013 -0700 @@ -152,6 +152,8 @@ * defined in a class file, then that name will be returned by * this method. Otherwise, this method will synthesize a name of * the form argN, where N is the index of the parameter.

diff -r 45a3584bfacf src/share/classes/java/lang/reflect/TypeVariable.java --- a/src/share/classes/java/lang/reflect/TypeVariable.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/reflect/TypeVariable.java Sun Jun 16 16:34:09 2013 -0700 @@ -95,6 +95,7 @@ * * Returns an array of length 0 if the type parameter declares no bounds. *

type variable * @since 1.8 */ AnnotatedType[] getAnnotatedBounds();



More information about the core-libs-dev mailing list