Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e5b87d89
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e5b87d89
编写于
8月 27, 2015
作者:
I
igerasim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8030785: Missing "since 1.8" javadoc for java.lang.reflect.Method:getParameterCount
Reviewed-by: mduigou, mchung
上级
54e01b75
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
13 deletion
+2
-13
src/share/classes/java/lang/reflect/Constructor.java
src/share/classes/java/lang/reflect/Constructor.java
+1
-0
src/share/classes/java/lang/reflect/Executable.java
src/share/classes/java/lang/reflect/Executable.java
+0
-13
src/share/classes/java/lang/reflect/Method.java
src/share/classes/java/lang/reflect/Method.java
+1
-0
未找到文件。
src/share/classes/java/lang/reflect/Constructor.java
浏览文件 @
e5b87d89
...
@@ -218,6 +218,7 @@ public final class Constructor<T> extends Executable {
...
@@ -218,6 +218,7 @@ public final class Constructor<T> extends Executable {
/**
/**
* {@inheritDoc}
* {@inheritDoc}
* @since 1.8
*/
*/
public
int
getParameterCount
()
{
return
parameterTypes
.
length
;
}
public
int
getParameterCount
()
{
return
parameterTypes
.
length
;
}
...
...
src/share/classes/java/lang/reflect/Executable.java
浏览文件 @
e5b87d89
...
@@ -245,7 +245,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -245,7 +245,6 @@ public abstract class Executable extends AccessibleObject
* declared or implicitly declared or neither) for the executable
* declared or implicitly declared or neither) for the executable
* represented by this object.
* represented by this object.
*
*
* @since 1.8
* @return The number of formal parameters for the executable this
* @return The number of formal parameters for the executable this
* object represents
* object represents
*/
*/
...
@@ -343,7 +342,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -343,7 +342,6 @@ public abstract class Executable extends AccessibleObject
* have unique names, or names that are legal identifiers in the
* have unique names, or names that are legal identifiers in the
* Java programming language (JLS 3.8).
* Java programming language (JLS 3.8).
*
*
* @since 1.8
* @throws MalformedParametersException if the class file contains
* @throws MalformedParametersException if the class file contains
* a MethodParameters attribute that is improperly formatted.
* a MethodParameters attribute that is improperly formatted.
* @return an array of {@code Parameter} objects representing all
* @return an array of {@code Parameter} objects representing all
...
@@ -575,7 +573,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -575,7 +573,6 @@ public abstract class Executable extends AccessibleObject
/**
/**
* {@inheritDoc}
* {@inheritDoc}
* @throws NullPointerException {@inheritDoc}
* @throws NullPointerException {@inheritDoc}
* @since 1.8
*/
*/
@Override
@Override
public
<
T
extends
Annotation
>
T
[]
getAnnotationsByType
(
Class
<
T
>
annotationClass
)
{
public
<
T
extends
Annotation
>
T
[]
getAnnotationsByType
(
Class
<
T
>
annotationClass
)
{
...
@@ -623,8 +620,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -623,8 +620,6 @@ public abstract class Executable extends AccessibleObject
*
*
* @return an object representing the return type of the method
* @return an object representing the return type of the method
* or constructor represented by this {@code Executable}
* or constructor represented by this {@code Executable}
*
* @since 1.8
*/
*/
public
abstract
AnnotatedType
getAnnotatedReturnType
();
public
abstract
AnnotatedType
getAnnotatedReturnType
();
...
@@ -633,8 +628,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -633,8 +628,6 @@ public abstract class Executable extends AccessibleObject
* Returns an AnnotatedType object that represents the use of a type to
* Returns an AnnotatedType object that represents the use of a type to
* specify the return type of the method/constructor represented by this
* specify the return type of the method/constructor represented by this
* Executable.
* Executable.
*
* @since 1.8
*/
*/
AnnotatedType
getAnnotatedReturnType0
(
Type
returnType
)
{
AnnotatedType
getAnnotatedReturnType0
(
Type
returnType
)
{
return
TypeAnnotationParser
.
buildAnnotatedType
(
getTypeAnnotationBytes0
(),
return
TypeAnnotationParser
.
buildAnnotatedType
(
getTypeAnnotationBytes0
(),
...
@@ -664,8 +657,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -664,8 +657,6 @@ public abstract class Executable extends AccessibleObject
*
*
* @return an object representing the receiver type of the method or
* @return an object representing the receiver type of the method or
* constructor represented by this {@code Executable}
* constructor represented by this {@code Executable}
*
* @since 1.8
*/
*/
public
AnnotatedType
getAnnotatedReceiverType
()
{
public
AnnotatedType
getAnnotatedReceiverType
()
{
if
(
Modifier
.
isStatic
(
this
.
getModifiers
()))
if
(
Modifier
.
isStatic
(
this
.
getModifiers
()))
...
@@ -692,8 +683,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -692,8 +683,6 @@ public abstract class Executable extends AccessibleObject
* @return an array of objects representing the types of the
* @return an array of objects representing the types of the
* formal parameters of the method or constructor represented by this
* formal parameters of the method or constructor represented by this
* {@code Executable}
* {@code Executable}
*
* @since 1.8
*/
*/
public
AnnotatedType
[]
getAnnotatedParameterTypes
()
{
public
AnnotatedType
[]
getAnnotatedParameterTypes
()
{
return
TypeAnnotationParser
.
buildAnnotatedTypes
(
getTypeAnnotationBytes0
(),
return
TypeAnnotationParser
.
buildAnnotatedTypes
(
getTypeAnnotationBytes0
(),
...
@@ -718,8 +707,6 @@ public abstract class Executable extends AccessibleObject
...
@@ -718,8 +707,6 @@ public abstract class Executable extends AccessibleObject
* @return an array of objects representing the declared
* @return an array of objects representing the declared
* exceptions of the method or constructor represented by this {@code
* exceptions of the method or constructor represented by this {@code
* Executable}
* Executable}
*
* @since 1.8
*/
*/
public
AnnotatedType
[]
getAnnotatedExceptionTypes
()
{
public
AnnotatedType
[]
getAnnotatedExceptionTypes
()
{
return
TypeAnnotationParser
.
buildAnnotatedTypes
(
getTypeAnnotationBytes0
(),
return
TypeAnnotationParser
.
buildAnnotatedTypes
(
getTypeAnnotationBytes0
(),
...
...
src/share/classes/java/lang/reflect/Method.java
浏览文件 @
e5b87d89
...
@@ -266,6 +266,7 @@ public final class Method extends Executable {
...
@@ -266,6 +266,7 @@ public final class Method extends Executable {
/**
/**
* {@inheritDoc}
* {@inheritDoc}
* @since 1.8
*/
*/
public
int
getParameterCount
()
{
return
parameterTypes
.
length
;
}
public
int
getParameterCount
()
{
return
parameterTypes
.
length
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录