Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
64186e6e
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
64186e6e
编写于
6月 26, 2013
作者:
B
bpatel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8014017: extra space in javadoc class heading
Reviewed-by: jjg
上级
a435d816
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
9 deletion
+23
-9
src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ClassBuilder.java
...tools/doclets/internal/toolkit/builders/ClassBuilder.java
+2
-1
test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java
...om/sun/javadoc/testPrivateClasses/TestPrivateClasses.java
+19
-6
test/com/sun/javadoc/testTypeAnnotations/TestTypeAnnotations.java
.../sun/javadoc/testTypeAnnotations/TestTypeAnnotations.java
+2
-2
未找到文件。
src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ClassBuilder.java
浏览文件 @
64186e6e
...
...
@@ -289,7 +289,8 @@ public class ClassBuilder extends AbstractBuilder {
* @param classInfoTree the content tree to which the documentation will be added
*/
public
void
buildClassSignature
(
XMLNode
node
,
Content
classInfoTree
)
{
StringBuilder
modifiers
=
new
StringBuilder
(
classDoc
.
modifiers
()
+
" "
);
StringBuilder
modifiers
=
new
StringBuilder
(
classDoc
.
modifiers
());
modifiers
.
append
(
modifiers
.
length
()
==
0
?
""
:
" "
);
if
(
isEnum
)
{
modifiers
.
append
(
"enum "
);
int
index
;
...
...
test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java
浏览文件 @
64186e6e
/*
* 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.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 4780441 4874845 4978816
* @bug 4780441 4874845 4978816
8014017
* @summary Make sure that when the -private flag is not used, members
* inherited from package private class are documented in the child.
*
...
...
@@ -33,17 +33,19 @@
*
* Make sure that when a private interface method with generic parameters
* is implemented, the comments can be inherited properly.
*
* Make sure when no modifier appear in the class signature, the
* signature is displayed correctly without extra space at the beginning.
* @author jamieh
* @library ../lib/
* @build JavadocTester
* @build TestPrivateClasses
* @build JavadocTester TestPrivateClasses
* @run main TestPrivateClasses
*/
public
class
TestPrivateClasses
extends
JavadocTester
{
//Test information.
private
static
final
String
BUG_ID
=
"4780441-4874845-4978816"
;
private
static
final
String
BUG_ID
=
"4780441-4874845-4978816
-8014017
"
;
//Javadoc arguments.
private
static
final
String
[]
ARGS1
=
new
String
[]
{
...
...
@@ -234,8 +236,19 @@ public class TestPrivateClasses extends JavadocTester {
" in interface <code>"
+
"<a href=\"../pkg2/I.html\" title=\"interface in pkg2\">I</a>"
+
"<java.lang.String></code></dd>"
},
//Make sure when no modifier appear in the class signature, the
//signature is displayed correctly without extra space at the beginning.
{
BUG_ID
+
"-2"
+
FS
+
"pkg"
+
FS
+
"PrivateParent.html"
,
"<pre>class <span class=\"strong\">PrivateParent</span>"
},
{
BUG_ID
+
"-2"
+
FS
+
"pkg"
+
FS
+
"PublicChild.html"
,
"<pre>public class <span class=\"strong\">PublicChild</span>"
},
};
private
static
final
String
[][]
NEGATED_TEST2
=
{
{
BUG_ID
+
"-2"
+
FS
+
"pkg"
+
FS
+
"PrivateParent.html"
,
"<pre> class <span class=\"strong\">PrivateParent</span>"
},
};
private
static
final
String
[][]
NEGATED_TEST2
=
NO_TEST
;
/**
* The entry point of the test.
...
...
test/com/sun/javadoc/testTypeAnnotations/TestTypeAnnotations.java
浏览文件 @
64186e6e
...
...
@@ -78,7 +78,7 @@ public class TestTypeAnnotations extends JavadocTester {
"typeannos\">@ClassParamA</a> java.lang.String></span>"
},
{
BUG_ID
+
FS
+
"typeannos"
+
FS
+
"ExtendsGeneric.html"
,
"<pre>
class <span class=\"strong\">ExtendsGeneric<K extends "
+
"<pre>class <span class=\"strong\">ExtendsGeneric<K extends "
+
"<a href=\"../typeannos/ClassParamA.html\" title=\"annotation in "
+
"typeannos\">@ClassParamA</a> <a href=\"../typeannos/Unannotated.html\" "
+
"title=\"class in typeannos\">Unannotated</a><<a href=\""
+
...
...
@@ -86,7 +86,7 @@ public class TestTypeAnnotations extends JavadocTester {
"@ClassParamB</a> java.lang.String>></span>"
},
{
BUG_ID
+
FS
+
"typeannos"
+
FS
+
"TwoBounds.html"
,
"<pre>
class <span class=\"strong\">TwoBounds<K extends <a href=\""
+
"<pre>class <span class=\"strong\">TwoBounds<K extends <a href=\""
+
"../typeannos/ClassParamA.html\" title=\"annotation in typeannos\">"
+
"@ClassParamA</a> java.lang.String,V extends <a href=\"../typeannos/"
+
"ClassParamB.html\" title=\"annotation in typeannos\">@ClassParamB"
+
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录