From 734668feec34c2063d6a6c3d44a885790d2f8d60 Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Fri, 20 Dec 2013 14:06:29 -0800 Subject: [PATCH] 8030785: Missing "since 1.8" javadoc for java.lang.reflect.Method:getParameterCount Reviewed-by: mduigou, mchung --- .../classes/java/lang/reflect/Constructor.java | 1 + .../share/classes/java/lang/reflect/Executable.java | 13 ------------- jdk/src/share/classes/java/lang/reflect/Method.java | 1 + 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/jdk/src/share/classes/java/lang/reflect/Constructor.java b/jdk/src/share/classes/java/lang/reflect/Constructor.java index d852fcd1741..f424deec74a 100644 --- a/jdk/src/share/classes/java/lang/reflect/Constructor.java +++ b/jdk/src/share/classes/java/lang/reflect/Constructor.java @@ -204,6 +204,7 @@ public final class Constructor extends Executable { /** * {@inheritDoc} + * @since 1.8 */ public int getParameterCount() { return parameterTypes.length; } diff --git a/jdk/src/share/classes/java/lang/reflect/Executable.java b/jdk/src/share/classes/java/lang/reflect/Executable.java index 95665706c2b..60e059e8e77 100644 --- a/jdk/src/share/classes/java/lang/reflect/Executable.java +++ b/jdk/src/share/classes/java/lang/reflect/Executable.java @@ -240,7 +240,6 @@ public abstract class Executable extends AccessibleObject * declared or implicitly declared or neither) for the executable * represented by this object. * - * @since 1.8 * @return The number of formal parameters for the executable this * object represents */ @@ -291,7 +290,6 @@ public abstract class Executable extends AccessibleObject * have unique names, or names that are legal identifiers in the * Java programming language (JLS 3.8). * - * @since 1.8 * @throws MalformedParametersException if the class file contains * a MethodParameters attribute that is improperly formatted. * @return an array of {@code Parameter} objects representing all @@ -523,7 +521,6 @@ public abstract class Executable extends AccessibleObject /** * {@inheritDoc} * @throws NullPointerException {@inheritDoc} - * @since 1.8 */ @Override public T[] getAnnotationsByType(Class annotationClass) { @@ -566,8 +563,6 @@ public abstract class Executable extends AccessibleObject * * @return an object representing the return type of the method * or constructor represented by this {@code Executable} - * - * @since 1.8 */ public abstract AnnotatedType getAnnotatedReturnType(); @@ -576,8 +571,6 @@ public abstract class Executable extends AccessibleObject * Returns an AnnotatedType object that represents the use of a type to * specify the return type of the method/constructor represented by this * Executable. - * - * @since 1.8 */ AnnotatedType getAnnotatedReturnType0(Type returnType) { return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes0(), @@ -607,8 +600,6 @@ public abstract class Executable extends AccessibleObject * * @return an object representing the receiver type of the method or * constructor represented by this {@code Executable} - * - * @since 1.8 */ public AnnotatedType getAnnotatedReceiverType() { if (Modifier.isStatic(this.getModifiers())) @@ -635,8 +626,6 @@ public abstract class Executable extends AccessibleObject * @return an array of objects representing the types of the * formal parameters of the method or constructor represented by this * {@code Executable} - * - * @since 1.8 */ public AnnotatedType[] getAnnotatedParameterTypes() { return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(), @@ -661,8 +650,6 @@ public abstract class Executable extends AccessibleObject * @return an array of objects representing the declared * exceptions of the method or constructor represented by this {@code * Executable} - * - * @since 1.8 */ public AnnotatedType[] getAnnotatedExceptionTypes() { return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(), diff --git a/jdk/src/share/classes/java/lang/reflect/Method.java b/jdk/src/share/classes/java/lang/reflect/Method.java index b046a7a1d3d..6c58138ee52 100644 --- a/jdk/src/share/classes/java/lang/reflect/Method.java +++ b/jdk/src/share/classes/java/lang/reflect/Method.java @@ -252,6 +252,7 @@ public final class Method extends Executable { /** * {@inheritDoc} + * @since 1.8 */ public int getParameterCount() { return parameterTypes.length; }