Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
4b661ae5
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看板
提交
4b661ae5
编写于
2月 23, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6556996: (ann spec) SuppressWarnings strings should be documented
Reviewed-by: mduigou, chegar, abuckley
上级
489096ab
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
26 addition
and
12 deletion
+26
-12
src/share/classes/java/lang/Deprecated.java
src/share/classes/java/lang/Deprecated.java
+2
-1
src/share/classes/java/lang/Override.java
src/share/classes/java/lang/Override.java
+2
-2
src/share/classes/java/lang/SafeVarargs.java
src/share/classes/java/lang/SafeVarargs.java
+2
-1
src/share/classes/java/lang/SuppressWarnings.java
src/share/classes/java/lang/SuppressWarnings.java
+12
-5
src/share/classes/java/lang/annotation/Inherited.java
src/share/classes/java/lang/annotation/Inherited.java
+2
-1
src/share/classes/java/lang/annotation/Retention.java
src/share/classes/java/lang/annotation/Retention.java
+2
-1
src/share/classes/java/lang/annotation/Target.java
src/share/classes/java/lang/annotation/Target.java
+4
-1
未找到文件。
src/share/classes/java/lang/Deprecated.java
浏览文件 @
4b661ae5
/*
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -36,6 +36,7 @@ import static java.lang.annotation.ElementType.*;
...
@@ -36,6 +36,7 @@ import static java.lang.annotation.ElementType.*;
*
*
* @author Neal Gafter
* @author Neal Gafter
* @since 1.5
* @since 1.5
* @jls 9.6.3.6 @Deprecated
*/
*/
@Documented
@Documented
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
...
...
src/share/classes/java/lang/Override.java
浏览文件 @
4b661ae5
/*
/*
* Copyright (c) 2003, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -43,7 +43,7 @@ import java.lang.annotation.*;
...
@@ -43,7 +43,7 @@ import java.lang.annotation.*;
*
*
* @author Peter von der Ahé
* @author Peter von der Ahé
* @author Joshua Bloch
* @author Joshua Bloch
* @jls 9.6.1.4 Override
* @jls 9.6.1.4
@
Override
* @since 1.5
* @since 1.5
*/
*/
@Target
(
ElementType
.
METHOD
)
@Target
(
ElementType
.
METHOD
)
...
...
src/share/classes/java/lang/SafeVarargs.java
浏览文件 @
4b661ae5
/*
/*
* Copyright (c) 2010, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -85,6 +85,7 @@ import java.lang.annotation.*;
...
@@ -85,6 +85,7 @@ import java.lang.annotation.*;
* @since 1.7
* @since 1.7
* @jls 4.7 Reifiable Types
* @jls 4.7 Reifiable Types
* @jls 8.4.1 Formal Parameters
* @jls 8.4.1 Formal Parameters
* @jls 9.6.3.7 @SafeVarargs
*/
*/
@Documented
@Documented
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
...
...
src/share/classes/java/lang/SuppressWarnings.java
浏览文件 @
4b661ae5
/*
/*
* Copyright (c) 2004, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -41,8 +41,13 @@ import static java.lang.annotation.ElementType.*;
...
@@ -41,8 +41,13 @@ import static java.lang.annotation.ElementType.*;
* suppress a warning in a particular method, you should annotate that
* suppress a warning in a particular method, you should annotate that
* method rather than its class.
* method rather than its class.
*
*
* @since 1.5
* @author Josh Bloch
* @author Josh Bloch
* @since 1.5
* @jls 4.8 Raw Types
* @jls 4.12.2 Variables of Reference Type
* @jls 5.1.9 Unchecked Conversion
* @jls 5.5.2 Checked Casts and Unchecked Casts
* @jls 9.6.3.5 @SuppressWarnings
*/
*/
@Target
({
TYPE
,
FIELD
,
METHOD
,
PARAMETER
,
CONSTRUCTOR
,
LOCAL_VARIABLE
})
@Target
({
TYPE
,
FIELD
,
METHOD
,
PARAMETER
,
CONSTRUCTOR
,
LOCAL_VARIABLE
})
@Retention
(
RetentionPolicy
.
SOURCE
)
@Retention
(
RetentionPolicy
.
SOURCE
)
...
@@ -56,9 +61,11 @@ public @interface SuppressWarnings {
...
@@ -56,9 +61,11 @@ public @interface SuppressWarnings {
* free to emit a warning if an annotation contains an unrecognized
* free to emit a warning if an annotation contains an unrecognized
* warning name.
* warning name.
*
*
* <p>Compiler vendors should document the warning names they support in
* <p> The string {@code "unchecked"} is used to suppress
* conjunction with this annotation type. They are encouraged to cooperate
* unchecked warnings. Compiler vendors should document the
* to ensure that the same names work across multiple compilers.
* additional warning names they support in conjunction with this
* annotation type. They are encouraged to cooperate to ensure
* that the same names work across multiple compilers.
*/
*/
String
[]
value
();
String
[]
value
();
}
}
src/share/classes/java/lang/annotation/Inherited.java
浏览文件 @
4b661ae5
/*
/*
* Copyright (c) 2003, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -44,6 +44,7 @@ package java.lang.annotation;
...
@@ -44,6 +44,7 @@ package java.lang.annotation;
*
*
* @author Joshua Bloch
* @author Joshua Bloch
* @since 1.5
* @since 1.5
* @jls 9.6.3.3 @Inherited
*/
*/
@Documented
@Documented
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
...
...
src/share/classes/java/lang/annotation/Retention.java
浏览文件 @
4b661ae5
/*
/*
* Copyright (c) 2003, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -38,6 +38,7 @@ package java.lang.annotation;
...
@@ -38,6 +38,7 @@ package java.lang.annotation;
*
*
* @author Joshua Bloch
* @author Joshua Bloch
* @since 1.5
* @since 1.5
* @jls 9.6.3.2 @Retention
*/
*/
@Documented
@Documented
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
...
...
src/share/classes/java/lang/annotation/Target.java
浏览文件 @
4b661ae5
/*
/*
* Copyright (c) 2003, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -59,6 +59,9 @@ package java.lang.annotation;
...
@@ -59,6 +59,9 @@ package java.lang.annotation;
* ...
* ...
* }
* }
* </pre>
* </pre>
*
* @since 1.5
* @jls 9.6.3.1 @Target
*/
*/
@Documented
@Documented
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录