Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
10e233b2
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看板
提交
10e233b2
编写于
10月 09, 2012
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8000208: fix langtools javadoc comment issues
Reviewed-by: bpatel, mcimadamore
上级
b43de60a
变更
63
隐藏空白更改
内联
并排
Showing
63 changed file
with
190 addition
and
196 deletion
+190
-196
src/share/classes/com/sun/javadoc/Tag.java
src/share/classes/com/sun/javadoc/Tag.java
+8
-8
src/share/classes/com/sun/tools/classfile/BootstrapMethods_attribute.java
...s/com/sun/tools/classfile/BootstrapMethods_attribute.java
+3
-3
src/share/classes/com/sun/tools/classfile/Dependencies.java
src/share/classes/com/sun/tools/classfile/Dependencies.java
+1
-1
src/share/classes/com/sun/tools/classfile/Instruction.java
src/share/classes/com/sun/tools/classfile/Instruction.java
+2
-2
src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java
.../doclets/formats/html/AbstractExecutableMemberWriter.java
+5
-5
src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java
.../sun/tools/doclets/formats/html/AbstractMemberWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java
...com/sun/tools/doclets/formats/html/ConfigurationImpl.java
+2
-2
src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java
.../sun/tools/doclets/formats/html/DeprecatedListWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
.../com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
+2
-2
src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java
...sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java
+3
-3
src/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java
...s/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java
+0
-1
src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
...om/sun/tools/doclets/formats/html/PackageIndexWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java
.../tools/doclets/formats/html/SerializedFormWriterImpl.java
+2
-1
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
...s/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
+3
-3
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
...com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
+2
-2
src/share/classes/com/sun/tools/doclets/internal/toolkit/EnumConstantWriter.java
...un/tools/doclets/internal/toolkit/EnumConstantWriter.java
+2
-2
src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstantsSummaryBuilder.java
...ts/internal/toolkit/builders/ConstantsSummaryBuilder.java
+0
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java
...clets/internal/toolkit/builders/MemberSummaryBuilder.java
+0
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ParamTaglet.java
...n/tools/doclets/internal/toolkit/taglets/ParamTaglet.java
+2
-2
src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ValueTaglet.java
...n/tools/doclets/internal/toolkit/taglets/ValueTaglet.java
+1
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/ClassDocCatalog.java
.../tools/doclets/internal/toolkit/util/ClassDocCatalog.java
+2
-2
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/DeprecatedAPIListBuilder.java
...clets/internal/toolkit/util/DeprecatedAPIListBuilder.java
+1
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/Extern.java
...s/com/sun/tools/doclets/internal/toolkit/util/Extern.java
+2
-2
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java
...tools/doclets/internal/toolkit/util/VisibleMemberMap.java
+2
-2
src/share/classes/com/sun/tools/javac/api/DiagnosticFormatter.java
.../classes/com/sun/tools/javac/api/DiagnosticFormatter.java
+2
-2
src/share/classes/com/sun/tools/javac/api/JavacTool.java
src/share/classes/com/sun/tools/javac/api/JavacTool.java
+2
-2
src/share/classes/com/sun/tools/javac/code/Printer.java
src/share/classes/com/sun/tools/javac/code/Printer.java
+2
-2
src/share/classes/com/sun/tools/javac/code/Symtab.java
src/share/classes/com/sun/tools/javac/code/Symtab.java
+1
-1
src/share/classes/com/sun/tools/javac/code/TypeTags.java
src/share/classes/com/sun/tools/javac/code/TypeTags.java
+2
-2
src/share/classes/com/sun/tools/javac/code/Types.java
src/share/classes/com/sun/tools/javac/code/Types.java
+3
-3
src/share/classes/com/sun/tools/javac/comp/Attr.java
src/share/classes/com/sun/tools/javac/comp/Attr.java
+1
-1
src/share/classes/com/sun/tools/javac/comp/Check.java
src/share/classes/com/sun/tools/javac/comp/Check.java
+6
-7
src/share/classes/com/sun/tools/javac/comp/Flow.java
src/share/classes/com/sun/tools/javac/comp/Flow.java
+1
-1
src/share/classes/com/sun/tools/javac/comp/Lower.java
src/share/classes/com/sun/tools/javac/comp/Lower.java
+2
-2
src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
+2
-4
src/share/classes/com/sun/tools/javac/comp/TransTypes.java
src/share/classes/com/sun/tools/javac/comp/TransTypes.java
+4
-0
src/share/classes/com/sun/tools/javac/file/JavacFileManager.java
...re/classes/com/sun/tools/javac/file/JavacFileManager.java
+3
-3
src/share/classes/com/sun/tools/javac/file/Locations.java
src/share/classes/com/sun/tools/javac/file/Locations.java
+5
-4
src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java
src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java
+1
-1
src/share/classes/com/sun/tools/javac/jvm/Gen.java
src/share/classes/com/sun/tools/javac/jvm/Gen.java
+3
-3
src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
+1
-3
src/share/classes/com/sun/tools/javac/nio/PathFileManager.java
...hare/classes/com/sun/tools/javac/nio/PathFileManager.java
+3
-2
src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java
...are/classes/com/sun/tools/javac/parser/JavaTokenizer.java
+1
-2
src/share/classes/com/sun/tools/javac/parser/Scanner.java
src/share/classes/com/sun/tools/javac/parser/Scanner.java
+2
-3
src/share/classes/com/sun/tools/javac/parser/UnicodeReader.java
...are/classes/com/sun/tools/javac/parser/UnicodeReader.java
+7
-8
src/share/classes/com/sun/tools/javac/processing/JavacRoundEnvironment.java
...com/sun/tools/javac/processing/JavacRoundEnvironment.java
+2
-2
src/share/classes/com/sun/tools/javac/processing/ServiceProxy.java
.../classes/com/sun/tools/javac/processing/ServiceProxy.java
+2
-2
src/share/classes/com/sun/tools/javac/tree/JCTree.java
src/share/classes/com/sun/tools/javac/tree/JCTree.java
+47
-49
src/share/classes/com/sun/tools/javac/util/AbstractDiagnosticFormatter.java
...com/sun/tools/javac/util/AbstractDiagnosticFormatter.java
+2
-2
src/share/classes/com/sun/tools/javac/util/AbstractLog.java
src/share/classes/com/sun/tools/javac/util/AbstractLog.java
+1
-2
src/share/classes/com/sun/tools/javac/util/BasicDiagnosticFormatter.java
...es/com/sun/tools/javac/util/BasicDiagnosticFormatter.java
+4
-4
src/share/classes/com/sun/tools/javac/util/Context.java
src/share/classes/com/sun/tools/javac/util/Context.java
+4
-4
src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java
src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java
+2
-3
src/share/classes/com/sun/tools/javac/util/Position.java
src/share/classes/com/sun/tools/javac/util/Position.java
+2
-2
src/share/classes/com/sun/tools/javac/util/RawDiagnosticFormatter.java
...sses/com/sun/tools/javac/util/RawDiagnosticFormatter.java
+2
-2
src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java
src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java
+2
-2
src/share/classes/com/sun/tools/javadoc/DocImpl.java
src/share/classes/com/sun/tools/javadoc/DocImpl.java
+1
-1
src/share/classes/com/sun/tools/javadoc/JavadocTool.java
src/share/classes/com/sun/tools/javadoc/JavadocTool.java
+2
-2
src/share/classes/com/sun/tools/javadoc/ModifierFilter.java
src/share/classes/com/sun/tools/javadoc/ModifierFilter.java
+2
-2
src/share/classes/com/sun/tools/javadoc/ParamTagImpl.java
src/share/classes/com/sun/tools/javadoc/ParamTagImpl.java
+3
-3
src/share/classes/com/sun/tools/javadoc/ThrowsTagImpl.java
src/share/classes/com/sun/tools/javadoc/ThrowsTagImpl.java
+3
-3
src/share/classes/com/sun/tools/javah/NativeHeaderTool.java
src/share/classes/com/sun/tools/javah/NativeHeaderTool.java
+3
-1
src/share/classes/com/sun/tools/javap/DisassemblerTool.java
src/share/classes/com/sun/tools/javap/DisassemblerTool.java
+4
-4
未找到文件。
src/share/classes/com/sun/javadoc/Tag.java
浏览文件 @
10e233b2
...
@@ -70,14 +70,14 @@ public interface Tag {
...
@@ -70,14 +70,14 @@ public interface Tag {
* than one tag of a given kind:
* than one tag of a given kind:
* <p>
* <p>
* <table border="1" cellpadding="4" cellspacing="0">
* <table border="1" cellpadding="4" cellspacing="0">
* <tr><th><tt> kind() </t
h> <th><tt> name()
</th></tr>
* <tr><th><tt> kind() </t
t></th> <th><tt> name() </tt>
</th></tr>
* <tr><td><tt> @throws </t
d> <td><tt> @throws
</td></tr>
* <tr><td><tt> @throws </t
t></td> <td><tt> @throws </tt>
</td></tr>
* <tr><td><tt> @throws </t
d> <td><tt> @exception
</td></tr>
* <tr><td><tt> @throws </t
t></td> <td><tt> @exception </tt>
</td></tr>
* <tr><td><tt> @see </t
d> <td><tt> @see
</td></tr>
* <tr><td><tt> @see </t
t></td> <td><tt> @see </tt>
</td></tr>
* <tr><td><tt> @see </t
d> <td><tt> @link
</td></tr>
* <tr><td><tt> @see </t
t></td> <td><tt> @link </tt>
</td></tr>
* <tr><td><tt> @see </t
d> <td><tt> @linkplain
</td></tr>
* <tr><td><tt> @see </t
t></td> <td><tt> @linkplain </tt>
</td></tr>
* <tr><td><tt> @serial </t
d> <td><tt> @serial
</td></tr>
* <tr><td><tt> @serial </t
t></td> <td><tt> @serial </tt>
</td></tr>
* <tr><td><tt> @serial </t
d> <td><tt> @serialData
</td></tr>
* <tr><td><tt> @serial </t
t></td> <td><tt> @serialData </tt>
</td></tr>
* </table>
* </table>
*/
*/
String
kind
();
String
kind
();
...
...
src/share/classes/com/sun/tools/classfile/BootstrapMethods_attribute.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011,
2012,
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
...
@@ -28,8 +28,8 @@ package com.sun.tools.classfile;
...
@@ -28,8 +28,8 @@ package com.sun.tools.classfile;
import
java.io.IOException
;
import
java.io.IOException
;
/**
/**
* See JVMS
<TBD>
* See JVMS
4.7.21
* http://
cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/
* http://
docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.21
*
*
* <p><b>This is NOT part of any supported API.
* <p><b>This is NOT part of any supported API.
* If you write code that depends on this, you do so at your own risk.
* If you write code that depends on this, you do so at your own risk.
...
...
src/share/classes/com/sun/tools/classfile/Dependencies.java
浏览文件 @
10e233b2
...
@@ -98,7 +98,7 @@ public class Dependencies {
...
@@ -98,7 +98,7 @@ public class Dependencies {
* Get the ClassFile object for a specified class.
* Get the ClassFile object for a specified class.
* @param className the name of the class to be returned.
* @param className the name of the class to be returned.
* @return the ClassFile for the given class
* @return the ClassFile for the given class
* @throws Dependencies
#
ClassFileNotFoundException if the classfile cannot be
* @throws Dependencies
.
ClassFileNotFoundException if the classfile cannot be
* found
* found
*/
*/
public
ClassFile
getClassFile
(
String
className
)
public
ClassFile
getClassFile
(
String
className
)
...
...
src/share/classes/com/sun/tools/classfile/Instruction.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009,
2012,
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
...
@@ -103,7 +103,7 @@ public class Instruction {
...
@@ -103,7 +103,7 @@ public class Instruction {
R
visitConstantPoolRefAndValue
(
Instruction
instr
,
int
index
,
int
value
,
P
p
);
R
visitConstantPoolRefAndValue
(
Instruction
instr
,
int
index
,
int
value
,
P
p
);
/** See {@link Kind#LOCAL}. */
/** See {@link Kind#LOCAL}. */
R
visitLocal
(
Instruction
instr
,
int
index
,
P
p
);
R
visitLocal
(
Instruction
instr
,
int
index
,
P
p
);
/** See {@link Kind#LOCAL_
U
BYTE}. */
/** See {@link Kind#LOCAL_BYTE}. */
R
visitLocalAndValue
(
Instruction
instr
,
int
index
,
int
value
,
P
p
);
R
visitLocalAndValue
(
Instruction
instr
,
int
index
,
int
value
,
P
p
);
/** See {@link Kind#DYNAMIC}. */
/** See {@link Kind#DYNAMIC}. */
R
visitLookupSwitch
(
Instruction
instr
,
int
default_
,
int
npairs
,
int
[]
matches
,
int
[]
offsets
,
P
p
);
R
visitLookupSwitch
(
Instruction
instr
,
int
default_
,
int
npairs
,
int
[]
matches
,
int
[]
offsets
,
P
p
);
...
...
src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1997, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
@@ -81,7 +81,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
...
@@ -81,7 +81,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
* Add the summary link for the member.
* Add the summary link for the member.
*
*
* @param context the id of the context where the link will be printed
* @param context the id of the context where the link will be printed
* @param c
lassDoc
the classDoc that we should link to
* @param c
d
the classDoc that we should link to
* @param member the member being linked to
* @param member the member being linked to
* @param tdSummary the content tree to which the link will be added
* @param tdSummary the content tree to which the link will be added
*/
*/
...
@@ -101,7 +101,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
...
@@ -101,7 +101,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
/**
/**
* Add the inherited summary link for the member.
* Add the inherited summary link for the member.
*
*
* @param c
lassDoc
the classDoc that we should link to
* @param c
d
the classDoc that we should link to
* @param member the member being linked to
* @param member the member being linked to
* @param linksTree the content tree to which the link will be added
* @param linksTree the content tree to which the link will be added
*/
*/
...
@@ -138,7 +138,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
...
@@ -138,7 +138,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
* Add all the parameters for the executable member.
* Add all the parameters for the executable member.
*
*
* @param member the member to write parameters for.
* @param member the member to write parameters for.
* @param tree the content tree to which the parameters information will be added.
* @param
html
tree the content tree to which the parameters information will be added.
*/
*/
protected
void
addParameters
(
ExecutableMemberDoc
member
,
Content
htmltree
)
{
protected
void
addParameters
(
ExecutableMemberDoc
member
,
Content
htmltree
)
{
addParameters
(
member
,
true
,
htmltree
);
addParameters
(
member
,
true
,
htmltree
);
...
@@ -149,7 +149,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
...
@@ -149,7 +149,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite
*
*
* @param member the member to write parameters for.
* @param member the member to write parameters for.
* @param includeAnnotations true if annotation information needs to be added.
* @param includeAnnotations true if annotation information needs to be added.
* @param tree the content tree to which the parameters information will be added.
* @param
html
tree the content tree to which the parameters information will be added.
*/
*/
protected
void
addParameters
(
ExecutableMemberDoc
member
,
protected
void
addParameters
(
ExecutableMemberDoc
member
,
boolean
includeAnnotations
,
Content
htmltree
)
{
boolean
includeAnnotations
,
Content
htmltree
)
{
...
...
src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java
浏览文件 @
10e233b2
...
@@ -365,7 +365,7 @@ public abstract class AbstractMemberWriter {
...
@@ -365,7 +365,7 @@ public abstract class AbstractMemberWriter {
* Add the comment for the given member.
* Add the comment for the given member.
*
*
* @param member the member being documented.
* @param member the member being documented.
* @param
contentT
ree the content tree to which the comment will be added.
* @param
htmlt
ree the content tree to which the comment will be added.
*/
*/
protected
void
addComment
(
ProgramElementDoc
member
,
Content
htmltree
)
{
protected
void
addComment
(
ProgramElementDoc
member
,
Content
htmltree
)
{
if
(
member
.
inlineTags
().
length
>
0
)
{
if
(
member
.
inlineTags
().
length
>
0
)
{
...
...
src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java
浏览文件 @
10e233b2
...
@@ -188,8 +188,8 @@ public class ConfigurationImpl extends Configuration {
...
@@ -188,8 +188,8 @@ public class ConfigurationImpl extends Configuration {
// ClassWriter.
// ClassWriter.
/**
/**
* Constructor. Initiali
s
es resource for the
* Constructor. Initiali
z
es resource for the
* {@link com.sun.tools.doclets.MessageRetriever}.
* {@link com.sun.tools.doclets.
internal.toolkit.util.MessageRetriever
MessageRetriever}.
*/
*/
private
ConfigurationImpl
()
{
private
ConfigurationImpl
()
{
standardmessage
=
new
MessageRetriever
(
this
,
standardmessage
=
new
MessageRetriever
(
this
,
...
...
src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java
浏览文件 @
10e233b2
...
@@ -208,7 +208,7 @@ public class DeprecatedListWriter extends SubWriterHolderWriter {
...
@@ -208,7 +208,7 @@ public class DeprecatedListWriter extends SubWriterHolderWriter {
*
*
* @param builder the deprecated list builder
* @param builder the deprecated list builder
* @param type the type of list being documented
* @param type the type of list being documented
* @param
content
Tree the content tree to which the anchor will be added
* @param
html
Tree the content tree to which the anchor will be added
*/
*/
private
void
addAnchor
(
DeprecatedAPIListBuilder
builder
,
int
type
,
Content
htmlTree
)
{
private
void
addAnchor
(
DeprecatedAPIListBuilder
builder
,
int
type
,
Content
htmlTree
)
{
if
(
builder
.
hasDocumentation
(
type
))
{
if
(
builder
.
hasDocumentation
(
type
))
{
...
...
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
浏览文件 @
10e233b2
...
@@ -1407,7 +1407,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
...
@@ -1407,7 +1407,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
/**
/**
* Returns a package name label.
* Returns a package name label.
*
*
* @param pa
rsed
Name the package name
* @param pa
ckage
Name the package name
* @return the package name content
* @return the package name content
*/
*/
public
Content
getPackageLabel
(
String
packageName
)
{
public
Content
getPackageLabel
(
String
packageName
)
{
...
@@ -2635,7 +2635,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
...
@@ -2635,7 +2635,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
/**
/**
* Adds the annotatation types for the given doc.
* Adds the annotatation types for the given doc.
*
*
* @param
packageD
oc the package to write annotations for
* @param
d
oc the package to write annotations for
* @param htmltree the content tree to which the annotation types will be added
* @param htmltree the content tree to which the annotation types will be added
*/
*/
public
void
addAnnotationInfo
(
ProgramElementDoc
doc
,
Content
htmltree
)
{
public
void
addAnnotationInfo
(
ProgramElementDoc
doc
,
Content
htmltree
)
{
...
...
src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java
浏览文件 @
10e233b2
...
@@ -121,10 +121,10 @@ public class HtmlSerialFieldWriter extends FieldWriterImpl
...
@@ -121,10 +121,10 @@ public class HtmlSerialFieldWriter extends FieldWriterImpl
/**
/**
* Add the member header.
* Add the member header.
*
*
* @param field
s
Type the class document to be listed
* @param fieldType the class document to be listed
* @param fieldTypeStr the string for the fi
le
d type to be documented
* @param fieldTypeStr the string for the fi
el
d type to be documented
* @param fieldDimensions the dimensions of the field string to be added
* @param fieldDimensions the dimensions of the field string to be added
* @param fi
r
ldName name of the field to be added
* @param fi
e
ldName name of the field to be added
* @param contentTree the content tree to which the member header will be added
* @param contentTree the content tree to which the member header will be added
*/
*/
public
void
addMemberHeader
(
ClassDoc
fieldType
,
String
fieldTypeStr
,
public
void
addMemberHeader
(
ClassDoc
fieldType
,
String
fieldTypeStr
,
...
...
src/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java
浏览文件 @
10e233b2
...
@@ -155,7 +155,6 @@ public class LinkFactoryImpl extends LinkFactory {
...
@@ -155,7 +155,6 @@ public class LinkFactoryImpl extends LinkFactory {
* "../../java/lang/Object.html"
* "../../java/lang/Object.html"
*
*
* @param linkInfo the information about the link.
* @param linkInfo the information about the link.
* @param fileName the file name, to which path string is.
*/
*/
private
String
pathString
(
LinkInfoImpl
linkInfo
)
{
private
String
pathString
(
LinkInfoImpl
linkInfo
)
{
if
(
linkInfo
.
context
==
LinkInfoImpl
.
PACKAGE_FRAME
)
{
if
(
linkInfo
.
context
==
LinkInfoImpl
.
PACKAGE_FRAME
)
{
...
...
src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
浏览文件 @
10e233b2
...
@@ -229,7 +229,7 @@ public class PackageIndexWriter extends AbstractPackageIndexWriter {
...
@@ -229,7 +229,7 @@ public class PackageIndexWriter extends AbstractPackageIndexWriter {
* Adds the lower navigation bar and the bottom text
* Adds the lower navigation bar and the bottom text
* (from the -bottom option) at the bottom of page.
* (from the -bottom option) at the bottom of page.
*
*
* @param the documentation tree to which the navigation bar footer will be added
* @param
body
the documentation tree to which the navigation bar footer will be added
*/
*/
protected
void
addNavigationBarFooter
(
Content
body
)
{
protected
void
addNavigationBarFooter
(
Content
body
)
{
addNavLinks
(
false
,
body
);
addNavLinks
(
false
,
body
);
...
...
src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1998, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
2
, 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
...
@@ -29,6 +29,7 @@ import java.io.*;
...
@@ -29,6 +29,7 @@ import java.io.*;
import
com.sun.javadoc.*
;
import
com.sun.javadoc.*
;
import
com.sun.tools.doclets.formats.html.markup.*
;
import
com.sun.tools.doclets.formats.html.markup.*
;
import
com.sun.tools.doclets.internal.toolkit.*
;
import
com.sun.tools.doclets.internal.toolkit.*
;
import
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
;
/**
/**
* Generate the Serialized Form Information Page.
* Generate the Serialized Form Information Page.
...
...
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2010, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
2
, 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
...
@@ -423,9 +423,9 @@ public class HtmlTree extends Content {
...
@@ -423,9 +423,9 @@ public class HtmlTree extends Content {
/**
/**
* Generates a META tag with the http-equiv, content and charset attributes.
* Generates a META tag with the http-equiv, content and charset attributes.
*
*
* @param http
-e
quiv http equiv attribute for the META tag
* @param http
E
quiv http equiv attribute for the META tag
* @param content type of content
* @param content type of content
* @param char
s
et character set used
* @param char
S
et character set used
* @return an HtmlTree object for the META tag
* @return an HtmlTree object for the META tag
*/
*/
public
static
HtmlTree
META
(
String
httpEquiv
,
String
content
,
String
charSet
)
{
public
static
HtmlTree
META
(
String
httpEquiv
,
String
content
,
String
charSet
)
{
...
...
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
@@ -158,7 +158,7 @@ public class HtmlWriter extends PrintWriter {
...
@@ -158,7 +158,7 @@ public class HtmlWriter extends PrintWriter {
* @param docencoding Encoding to be used for this file.
* @param docencoding Encoding to be used for this file.
* @exception IOException Exception raised by the FileWriter is passed on
* @exception IOException Exception raised by the FileWriter is passed on
* to next level.
* to next level.
* @exception Un
S
upportedEncodingException Exception raised by the
* @exception Un
s
upportedEncodingException Exception raised by the
* OutputStreamWriter is passed on to next level.
* OutputStreamWriter is passed on to next level.
*/
*/
public
HtmlWriter
(
Configuration
configuration
,
public
HtmlWriter
(
Configuration
configuration
,
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/EnumConstantWriter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
2
, 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
...
@@ -56,7 +56,7 @@ public interface EnumConstantWriter {
...
@@ -56,7 +56,7 @@ public interface EnumConstantWriter {
* Get the enum constants documentation tree header.
* Get the enum constants documentation tree header.
*
*
* @param enumConstant the enum constant being documented
* @param enumConstant the enum constant being documented
* @param enumConstantDetailsTree the content tree representing enum constant details
* @param enumConstant
s
DetailsTree the content tree representing enum constant details
* @return content tree for the enum constant documentation header
* @return content tree for the enum constant documentation header
*/
*/
public
Content
getEnumConstantsTreeHeader
(
FieldDoc
enumConstant
,
public
Content
getEnumConstantsTreeHeader
(
FieldDoc
enumConstant
,
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstantsSummaryBuilder.java
浏览文件 @
10e233b2
...
@@ -346,7 +346,6 @@ public class ConstantsSummaryBuilder extends AbstractBuilder {
...
@@ -346,7 +346,6 @@ public class ConstantsSummaryBuilder extends AbstractBuilder {
/**
/**
* Return the list of visible constant fields for the given classdoc.
* Return the list of visible constant fields for the given classdoc.
* @param cd the classdoc to examine.
* @return the list of visible constant fields for the given classdoc.
* @return the list of visible constant fields for the given classdoc.
*/
*/
protected
List
<
FieldDoc
>
members
()
{
protected
List
<
FieldDoc
>
members
()
{
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java
浏览文件 @
10e233b2
...
@@ -166,7 +166,6 @@ public class MemberSummaryBuilder extends AbstractMemberBuilder {
...
@@ -166,7 +166,6 @@ public class MemberSummaryBuilder extends AbstractMemberBuilder {
* This information can be used for doclet specific documentation
* This information can be used for doclet specific documentation
* generation.
* generation.
*
*
* @param classDoc the {@link ClassDoc} we want to check.
* @param type the type of members to return.
* @param type the type of members to return.
* @return a list of methods that will be documented.
* @return a list of methods that will be documented.
* @see VisibleMemberMap
* @see VisibleMemberMap
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ParamTaglet.java
浏览文件 @
10e233b2
...
@@ -183,7 +183,7 @@ public class ParamTaglet extends BaseTaglet implements InheritableTaglet {
...
@@ -183,7 +183,7 @@ public class ParamTaglet extends BaseTaglet implements InheritableTaglet {
* Given an array of <code>ParamTag</code>s,return its string representation.
* Given an array of <code>ParamTag</code>s,return its string representation.
* Try to inherit the param tags that are missing.
* Try to inherit the param tags that are missing.
*
*
* @param
doc
the doc that holds the param tags.
* @param
holder
the doc that holds the param tags.
* @param writer the TagletWriter that will write this tag.
* @param writer the TagletWriter that will write this tag.
* @param formalParameters The array of parmeters (from type or executable
* @param formalParameters The array of parmeters (from type or executable
* member) to check.
* member) to check.
...
@@ -256,7 +256,7 @@ public class ParamTaglet extends BaseTaglet implements InheritableTaglet {
...
@@ -256,7 +256,7 @@ public class ParamTaglet extends BaseTaglet implements InheritableTaglet {
* been documented.
* been documented.
* @param rankMap a {@link java.util.Map} which holds ordering
* @param rankMap a {@link java.util.Map} which holds ordering
* information about the parameters.
* information about the parameters.
* @param
name
Map a {@link java.util.Map} which holds a mapping
* @param
rank
Map a {@link java.util.Map} which holds a mapping
* of a rank of a parameter to its name. This is
* of a rank of a parameter to its name. This is
* used to ensure that the right name is used
* used to ensure that the right name is used
* when parameter documentation is inherited.
* when parameter documentation is inherited.
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ValueTaglet.java
浏览文件 @
10e233b2
...
@@ -108,7 +108,7 @@ public class ValueTaglet extends BaseInlineTaglet {
...
@@ -108,7 +108,7 @@ public class ValueTaglet extends BaseInlineTaglet {
* @param config the current configuration of the doclet.
* @param config the current configuration of the doclet.
* @param tag the value tag.
* @param tag the value tag.
* @param name the name of the field to search for. The name should be in
* @param name the name of the field to search for. The name should be in
*
<qualified class name>#<field name>
format. If the class name is omitted,
*
{@code <qualified class name>#<field name>}
format. If the class name is omitted,
* it is assumed that the field is in the current class.
* it is assumed that the field is in the current class.
*
*
* @return the corresponding FieldDoc. If the name is null or empty string,
* @return the corresponding FieldDoc. If the name is null or empty string,
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/ClassDocCatalog.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2001, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
2
, 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
...
@@ -184,7 +184,7 @@ import com.sun.tools.doclets.internal.toolkit.Configuration;
...
@@ -184,7 +184,7 @@ import com.sun.tools.doclets.internal.toolkit.Configuration;
/**
/**
* Return all of the classes specified on the command-line that
* Return all of the classes specified on the command-line that
* belong to the given package.
* belong to the given package.
* @param p
ackage
Doc the package to return the classes for.
* @param p
kg
Doc the package to return the classes for.
*/
*/
public
ClassDoc
[]
allClasses
(
PackageDoc
pkgDoc
)
{
public
ClassDoc
[]
allClasses
(
PackageDoc
pkgDoc
)
{
return
pkgDoc
.
isIncluded
()
?
return
pkgDoc
.
isIncluded
()
?
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/DeprecatedAPIListBuilder.java
浏览文件 @
10e233b2
...
@@ -146,7 +146,7 @@ public class DeprecatedAPIListBuilder {
...
@@ -146,7 +146,7 @@ public class DeprecatedAPIListBuilder {
/**
/**
* Return the list of deprecated Doc objects of a given type.
* Return the list of deprecated Doc objects of a given type.
*
*
* @param the constant representing the type of list being returned.
* @param t
ype t
he constant representing the type of list being returned.
*/
*/
public
List
<
Doc
>
getList
(
int
type
)
{
public
List
<
Doc
>
getList
(
int
type
)
{
return
deprecatedLists
.
get
(
type
);
return
deprecatedLists
.
get
(
type
);
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/Extern.java
浏览文件 @
10e233b2
...
@@ -91,7 +91,7 @@ public class Extern {
...
@@ -91,7 +91,7 @@ public class Extern {
* If the same package name is found in the map, then the first mapped
* If the same package name is found in the map, then the first mapped
* Item object or offline location will be retained.
* Item object or offline location will be retained.
*
*
* @param package
n
ame Package name found in the "package-list" file.
* @param package
N
ame Package name found in the "package-list" file.
* @param path URL or Directory path from where the "package-list"
* @param path URL or Directory path from where the "package-list"
* file is picked.
* file is picked.
* @param relative True if path is URL, false if directory path.
* @param relative True if path is URL, false if directory path.
...
@@ -179,7 +179,7 @@ public class Extern {
...
@@ -179,7 +179,7 @@ public class Extern {
/**
/**
* Get the Extern Item object associated with this package name.
* Get the Extern Item object associated with this package name.
*
*
* @param pkg
n
ame Package name.
* @param pkg
N
ame Package name.
*/
*/
private
Item
findPackageItem
(
String
pkgName
)
{
private
Item
findPackageItem
(
String
pkgName
)
{
if
(
packageToItemMap
==
null
)
{
if
(
packageToItemMap
==
null
)
{
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java
浏览文件 @
10e233b2
...
@@ -126,7 +126,7 @@ public class VisibleMemberMap {
...
@@ -126,7 +126,7 @@ public class VisibleMemberMap {
* Return the package private members inherited by the class. Only return
* Return the package private members inherited by the class. Only return
* if parent is package private and not documented.
* if parent is package private and not documented.
*
*
* @param configuation the current configuration of the doclet.
* @param configu
r
ation the current configuration of the doclet.
* @return the package private members inherited by the class.
* @return the package private members inherited by the class.
*/
*/
private
List
<
ProgramElementDoc
>
getInheritedPackagePrivateMethods
(
Configuration
configuration
)
{
private
List
<
ProgramElementDoc
>
getInheritedPackagePrivateMethods
(
Configuration
configuration
)
{
...
@@ -149,7 +149,7 @@ public class VisibleMemberMap {
...
@@ -149,7 +149,7 @@ public class VisibleMemberMap {
* end of the list members that are inherited by inaccessible parents. We
* end of the list members that are inherited by inaccessible parents. We
* document these members in the child because the parent is not documented.
* document these members in the child because the parent is not documented.
*
*
* @param configuation the current configuration of the doclet.
* @param configu
r
ation the current configuration of the doclet.
*/
*/
public
List
<
ProgramElementDoc
>
getLeafClassMembers
(
Configuration
configuration
)
{
public
List
<
ProgramElementDoc
>
getLeafClassMembers
(
Configuration
configuration
)
{
List
<
ProgramElementDoc
>
result
=
getMembersFor
(
classdoc
);
List
<
ProgramElementDoc
>
result
=
getMembersFor
(
classdoc
);
...
...
src/share/classes/com/sun/tools/javac/api/DiagnosticFormatter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2008, 20
09
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 20
12
, 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
...
@@ -138,7 +138,7 @@ public interface DiagnosticFormatter<D extends Diagnostic<?>> {
...
@@ -138,7 +138,7 @@ public interface DiagnosticFormatter<D extends Diagnostic<?>> {
/**
/**
* Configure the set of diagnostic parts that should be displayed
* Configure the set of diagnostic parts that should be displayed
* by the formatter.
* by the formatter.
* @param
options options to
set
* @param
visibleParts the parts to be
set
*/
*/
public
void
setVisible
(
Set
<
DiagnosticPart
>
visibleParts
);
public
void
setVisible
(
Set
<
DiagnosticPart
>
visibleParts
);
...
...
src/share/classes/com/sun/tools/javac/api/JavacTool.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
2
, 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
...
@@ -66,7 +66,7 @@ public final class JavacTool implements JavaCompiler {
...
@@ -66,7 +66,7 @@ public final class JavacTool implements JavaCompiler {
* Constructor used by service provider mechanism. The recommended way to
* Constructor used by service provider mechanism. The recommended way to
* obtain an instance of this class is by using {@link #create} or the
* obtain an instance of this class is by using {@link #create} or the
* service provider mechanism.
* service provider mechanism.
* @see javax.tools.JavaCompiler
Tool
* @see javax.tools.JavaCompiler
* @see javax.tools.ToolProvider
* @see javax.tools.ToolProvider
* @see #create
* @see #create
*/
*/
...
...
src/share/classes/com/sun/tools/javac/code/Printer.java
浏览文件 @
10e233b2
...
@@ -124,7 +124,7 @@ public abstract class Printer implements Type.Visitor<String, Locale>, Symbol.Vi
...
@@ -124,7 +124,7 @@ public abstract class Printer implements Type.Visitor<String, Locale>, Symbol.Vi
/**
/**
* Get a localized string represenation for a given type.
* Get a localized string represenation for a given type.
*
*
* @param t
s
type to be displayed
* @param t type to be displayed
* @param locale the locale in which the string is to be rendered
* @param locale the locale in which the string is to be rendered
* @return localized string representation
* @return localized string representation
*/
*/
...
@@ -135,7 +135,7 @@ public abstract class Printer implements Type.Visitor<String, Locale>, Symbol.Vi
...
@@ -135,7 +135,7 @@ public abstract class Printer implements Type.Visitor<String, Locale>, Symbol.Vi
/**
/**
* Get a localized string represenation for a given symbol.
* Get a localized string represenation for a given symbol.
*
*
* @param
t
s symbol to be displayed
* @param s symbol to be displayed
* @param locale the locale in which the string is to be rendered
* @param locale the locale in which the string is to be rendered
* @return localized string representation
* @return localized string representation
*/
*/
...
...
src/share/classes/com/sun/tools/javac/code/Symtab.java
浏览文件 @
10e233b2
...
@@ -301,7 +301,7 @@ public class Symtab {
...
@@ -301,7 +301,7 @@ public class Symtab {
}
}
/** Enter a class into symbol table.
/** Enter a class into symbol table.
* @param
The name of the class.
* @param
s
The name of the class.
*/
*/
private
Type
enterClass
(
String
s
)
{
private
Type
enterClass
(
String
s
)
{
return
reader
.
enterClass
(
names
.
fromString
(
s
)).
type
;
return
reader
.
enterClass
(
names
.
fromString
(
s
)).
type
;
...
...
src/share/classes/com/sun/tools/javac/code/TypeTags.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1999, 20
05
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
12
, 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
...
@@ -106,7 +106,7 @@ public class TypeTags {
...
@@ -106,7 +106,7 @@ public class TypeTags {
*/
*/
public
static
final
int
DEFERRED
=
FORALL
+
1
;
public
static
final
int
DEFERRED
=
FORALL
+
1
;
/** The tag of the bottom type
<null>
.
/** The tag of the bottom type
{@code <null>}
.
*/
*/
public
static
final
int
BOT
=
DEFERRED
+
1
;
public
static
final
int
BOT
=
DEFERRED
+
1
;
...
...
src/share/classes/com/sun/tools/javac/code/Types.java
浏览文件 @
10e233b2
...
@@ -1427,8 +1427,8 @@ public class Types {
...
@@ -1427,8 +1427,8 @@ public class Types {
* conservative in that it is allowed to say that two types are
* conservative in that it is allowed to say that two types are
* not disjoint, even though they actually are.
* not disjoint, even though they actually are.
*
*
* The type
C<X> is castable to C<Y> exactly if X and Y are not
* The type
{@code C<X>} is castable to {@code C<Y>} exactly if
* disjoint.
*
{@code X} and {@code Y} are not
disjoint.
*/
*/
public
boolean
disjointType
(
Type
t
,
Type
s
)
{
public
boolean
disjointType
(
Type
t
,
Type
s
)
{
return
disjointType
.
visit
(
t
,
s
);
return
disjointType
.
visit
(
t
,
s
);
...
@@ -1523,7 +1523,7 @@ public class Types {
...
@@ -1523,7 +1523,7 @@ public class Types {
* something of type `t' can be a subtype of `s'? This is
* something of type `t' can be a subtype of `s'? This is
* different from the question "is `t' not a subtype of `s'?"
* different from the question "is `t' not a subtype of `s'?"
* when type variables are involved: Integer is not a subtype of T
* when type variables are involved: Integer is not a subtype of T
* where
<T extends Number>
but it is not true that Integer cannot
* where
{@code <T extends Number>}
but it is not true that Integer cannot
* possibly be a subtype of T.
* possibly be a subtype of T.
*/
*/
public
boolean
notSoftSubtype
(
Type
t
,
Type
s
)
{
public
boolean
notSoftSubtype
(
Type
t
,
Type
s
)
{
...
...
src/share/classes/com/sun/tools/javac/comp/Attr.java
浏览文件 @
10e233b2
...
@@ -740,7 +740,7 @@ public class Attr extends JCTree.Visitor {
...
@@ -740,7 +740,7 @@ public class Attr extends JCTree.Visitor {
* @param env The env for the const value
* @param env The env for the const value
* @param initializer The initializer for the const value
* @param initializer The initializer for the const value
* @param type The expected type, or null
* @param type The expected type, or null
* @see VarSymbol#set
l
azyConstValue
* @see VarSymbol#set
L
azyConstValue
*/
*/
public
Object
attribLazyConstantValue
(
Env
<
AttrContext
>
env
,
public
Object
attribLazyConstantValue
(
Env
<
AttrContext
>
env
,
JCTree
.
JCExpression
initializer
,
JCTree
.
JCExpression
initializer
,
...
...
src/share/classes/com/sun/tools/javac/comp/Check.java
浏览文件 @
10e233b2
...
@@ -230,7 +230,6 @@ public class Check {
...
@@ -230,7 +230,6 @@ public class Check {
/** Warn about unsafe vararg method decl.
/** Warn about unsafe vararg method decl.
* @param pos Position to be used for error reporting.
* @param pos Position to be used for error reporting.
* @param sym The deprecated symbol.
*/
*/
void
warnUnsafeVararg
(
DiagnosticPosition
pos
,
String
key
,
Object
...
args
)
{
void
warnUnsafeVararg
(
DiagnosticPosition
pos
,
String
key
,
Object
...
args
)
{
if
(
lint
.
isEnabled
(
LintCategory
.
VARARGS
)
&&
allowSimplifiedVarargs
)
if
(
lint
.
isEnabled
(
LintCategory
.
VARARGS
)
&&
allowSimplifiedVarargs
)
...
@@ -397,7 +396,7 @@ public class Check {
...
@@ -397,7 +396,7 @@ public class Check {
**************************************************************************/
**************************************************************************/
/** Return name of local class.
/** Return name of local class.
* This is of the form
<enclClass> $ n <classname>
* This is of the form
{@code <enclClass> $ n <classname> }
* where
* where
* enclClass is the flat name of the enclosing class,
* enclClass is the flat name of the enclosing class,
* classname is the simple name of the local class
* classname is the simple name of the local class
...
@@ -600,11 +599,10 @@ public class Check {
...
@@ -600,11 +599,10 @@ public class Check {
/** Check that a type is within some bounds.
/** Check that a type is within some bounds.
*
*
* Used in TypeApply to verify that, e.g., X in
V<X>
is a valid
* Used in TypeApply to verify that, e.g., X in
{@code V<X>}
is a valid
* type argument.
* type argument.
* @param pos Position to be used for error reporting.
* @param a The type that should be bounded by bs.
* @param a The type that should be bounded by bs.
* @param b
s
The bound.
* @param b
ound
The bound.
*/
*/
private
boolean
checkExtends
(
Type
a
,
Type
bound
)
{
private
boolean
checkExtends
(
Type
a
,
Type
bound
)
{
if
(
a
.
isUnbound
())
{
if
(
a
.
isUnbound
())
{
...
@@ -1262,8 +1260,10 @@ public class Check {
...
@@ -1262,8 +1260,10 @@ public class Check {
* their bounds. This must be done in a second phase after type attributon
* their bounds. This must be done in a second phase after type attributon
* since a class might have a subclass as type parameter bound. E.g:
* since a class might have a subclass as type parameter bound. E.g:
*
*
* <pre>{@code
* class B<A extends C> { ... }
* class B<A extends C> { ... }
* class C extends B<C> { ... }
* class C extends B<C> { ... }
* }</pre>
*
*
* and we can't make sure that the bound is already attributed because
* and we can't make sure that the bound is already attributed because
* of possible cycles.
* of possible cycles.
...
@@ -2574,7 +2574,7 @@ public class Check {
...
@@ -2574,7 +2574,7 @@ public class Check {
* 'pos'.
* 'pos'.
*
*
* @param s The (annotation)type declaration annotated with a @ContainedBy
* @param s The (annotation)type declaration annotated with a @ContainedBy
* @param containe
rAnno
the @ContainedBy on 's'
* @param containe
dBy
the @ContainedBy on 's'
* @param pos where to report errors
* @param pos where to report errors
*/
*/
public
void
validateContainedBy
(
TypeSymbol
s
,
Attribute
.
Compound
containedBy
,
DiagnosticPosition
pos
)
{
public
void
validateContainedBy
(
TypeSymbol
s
,
Attribute
.
Compound
containedBy
,
DiagnosticPosition
pos
)
{
...
@@ -3181,7 +3181,6 @@ public class Check {
...
@@ -3181,7 +3181,6 @@ public class Check {
* @param pos Position for error reporting.
* @param pos Position for error reporting.
* @param sym The symbol.
* @param sym The symbol.
* @param s The scope
* @param s The scope
* @param staticImport Whether or not this was a static import
*/
*/
boolean
checkUniqueStaticImport
(
DiagnosticPosition
pos
,
Symbol
sym
,
Scope
s
)
{
boolean
checkUniqueStaticImport
(
DiagnosticPosition
pos
,
Symbol
sym
,
Scope
s
)
{
return
checkUniqueImport
(
pos
,
sym
,
s
,
true
);
return
checkUniqueImport
(
pos
,
sym
,
s
,
true
);
...
...
src/share/classes/com/sun/tools/javac/comp/Flow.java
浏览文件 @
10e233b2
...
@@ -148,7 +148,7 @@ import static com.sun.tools.javac.tree.JCTree.Tag.*;
...
@@ -148,7 +148,7 @@ import static com.sun.tools.javac.tree.JCTree.Tag.*;
* exception to this [no pun intended] is that checked exceptions that
* exception to this [no pun intended] is that checked exceptions that
* are known to be caught or declared to be caught in the enclosing
* are known to be caught or declared to be caught in the enclosing
* method are not recorded in the queue, but instead are recorded in a
* method are not recorded in the queue, but instead are recorded in a
* global variable "
Set<Type> thrown
" that records the type of all
* global variable "
{@code Set<Type> thrown}
" that records the type of all
* exceptions that can be thrown.
* exceptions that can be thrown.
*
*
* <p>Other minor issues the treatment of members of other classes
* <p>Other minor issues the treatment of members of other classes
...
...
src/share/classes/com/sun/tools/javac/comp/Lower.java
浏览文件 @
10e233b2
...
@@ -671,7 +671,7 @@ public class Lower extends TreeTranslator {
...
@@ -671,7 +671,7 @@ public class Lower extends TreeTranslator {
};
};
/** Look up a synthetic name in a given scope.
/** Look up a synthetic name in a given scope.
* @param s
cope
The scope.
* @param s
The scope.
* @param name The name.
* @param name The name.
*/
*/
private
Symbol
lookupSynthetic
(
Name
name
,
Scope
s
)
{
private
Symbol
lookupSynthetic
(
Name
name
,
Scope
s
)
{
...
@@ -747,7 +747,7 @@ public class Lower extends TreeTranslator {
...
@@ -747,7 +747,7 @@ public class Lower extends TreeTranslator {
* This numbering scheme is used by the backend to decide whether
* This numbering scheme is used by the backend to decide whether
* to issue an invokevirtual or invokespecial call.
* to issue an invokevirtual or invokespecial call.
*
*
* @see Gen
.visitSelect(Select
tree)
* @see Gen
#visitSelect(JCFieldAccess
tree)
*/
*/
private
static
final
int
private
static
final
int
DEREFcode
=
0
,
DEREFcode
=
0
,
...
...
src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
浏览文件 @
10e233b2
...
@@ -128,8 +128,7 @@ public class MemberEnter extends JCTree.Visitor implements Completer {
...
@@ -128,8 +128,7 @@ public class MemberEnter extends JCTree.Visitor implements Completer {
/** Import all classes of a class or package on demand.
/** Import all classes of a class or package on demand.
* @param pos Position to be used for error reporting.
* @param pos Position to be used for error reporting.
* @param tsym The class or package the members of which are imported.
* @param tsym The class or package the members of which are imported.
* @param toScope The (import) scope in which imported classes
* @param env The env in which the imported classes will be entered.
* are entered.
*/
*/
private
void
importAll
(
int
pos
,
private
void
importAll
(
int
pos
,
final
TypeSymbol
tsym
,
final
TypeSymbol
tsym
,
...
@@ -150,8 +149,7 @@ public class MemberEnter extends JCTree.Visitor implements Completer {
...
@@ -150,8 +149,7 @@ public class MemberEnter extends JCTree.Visitor implements Completer {
/** Import all static members of a class or package on demand.
/** Import all static members of a class or package on demand.
* @param pos Position to be used for error reporting.
* @param pos Position to be used for error reporting.
* @param tsym The class or package the members of which are imported.
* @param tsym The class or package the members of which are imported.
* @param toScope The (import) scope in which imported classes
* @param env The env in which the imported classes will be entered.
* are entered.
*/
*/
private
void
importStaticAll
(
int
pos
,
private
void
importStaticAll
(
int
pos
,
final
TypeSymbol
tsym
,
final
TypeSymbol
tsym
,
...
...
src/share/classes/com/sun/tools/javac/comp/TransTypes.java
浏览文件 @
10e233b2
...
@@ -132,17 +132,21 @@ public class TransTypes extends TreeTranslator {
...
@@ -132,17 +132,21 @@ public class TransTypes extends TreeTranslator {
* Then, coerce to some given target type unless target type is null.
* Then, coerce to some given target type unless target type is null.
* This operation is used in situations like the following:
* This operation is used in situations like the following:
*
*
* <pre>{@code
* class Cell<A> { A value; }
* class Cell<A> { A value; }
* ...
* ...
* Cell<Integer> cell;
* Cell<Integer> cell;
* Integer x = cell.value;
* Integer x = cell.value;
* }</pre>
*
*
* Since the erasure of Cell.value is Object, but the type
* Since the erasure of Cell.value is Object, but the type
* of cell.value in the assignment is Integer, we need to
* of cell.value in the assignment is Integer, we need to
* adjust the original type of cell.value to Object, and insert
* adjust the original type of cell.value to Object, and insert
* a cast to Integer. That is, the last assignment becomes:
* a cast to Integer. That is, the last assignment becomes:
*
*
* <pre>{@code
* Integer x = (Integer)cell.value;
* Integer x = (Integer)cell.value;
* }</pre>
*
*
* @param tree The expression tree whose type might need adjustment.
* @param tree The expression tree whose type might need adjustment.
* @param erasedType The expression's type after erasure.
* @param erasedType The expression's type after erasure.
...
...
src/share/classes/com/sun/tools/javac/file/JavacFileManager.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
2
, 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
...
@@ -805,8 +805,8 @@ public class JavacFileManager extends BaseFileManager implements StandardJavaFil
...
@@ -805,8 +805,8 @@ public class JavacFileManager extends BaseFileManager implements StandardJavaFil
}
}
/**
/**
* Enforces the specification of a "relative"
URI
as used in
* Enforces the specification of a "relative"
name
as used in
* {@linkplain #getFileForInput(Location,String,
URI
)
* {@linkplain #getFileForInput(Location,String,
String
)
* getFileForInput}. This method must follow the rules defined in
* getFileForInput}. This method must follow the rules defined in
* that method, do not make any changes without consulting the
* that method, do not make any changes without consulting the
* specification.
* specification.
...
...
src/share/classes/com/sun/tools/javac/file/Locations.java
浏览文件 @
10e233b2
...
@@ -53,13 +53,14 @@ import com.sun.tools.javac.util.Log;
...
@@ -53,13 +53,14 @@ import com.sun.tools.javac.util.Log;
import
com.sun.tools.javac.util.Options
;
import
com.sun.tools.javac.util.Options
;
import
javax.tools.JavaFileManager
;
import
javax.tools.JavaFileManager
;
import
javax.tools.StandardJavaFileManager
;
import
static
javax
.
tools
.
StandardLocation
.*;
import
static
javax
.
tools
.
StandardLocation
.*;
import
static
com
.
sun
.
tools
.
javac
.
main
.
Option
.*;
import
static
com
.
sun
.
tools
.
javac
.
main
.
Option
.*;
/** This class converts command line arguments, environment variables
/** This class converts command line arguments, environment variables
* and system properties (in File.pathSeparator-separated String form)
* and system properties (in File.pathSeparator-separated String form)
* into a boot class path, user class path, and source path (in
* into a boot class path, user class path, and source path (in
*
Collection<String>
form).
*
{@code Collection<String>}
form).
*
*
* <p><b>This is NOT part of any supported API.
* <p><b>This is NOT part of any supported API.
* If you write code that depends on this, you do so at your own risk.
* If you write code that depends on this, you do so at your own risk.
...
@@ -342,11 +343,11 @@ public class Locations {
...
@@ -342,11 +343,11 @@ public class Locations {
}
}
}
}
/** @see JavaFileManager#handleOption
.
*/
/** @see JavaFileManager#handleOption */
abstract
boolean
handleOption
(
Option
option
,
String
value
);
abstract
boolean
handleOption
(
Option
option
,
String
value
);
/** @see
JavaFileManager#getLocation.
*/
/** @see
StandardJavaFileManager#getLocation
*/
abstract
Collection
<
File
>
getLocation
();
abstract
Collection
<
File
>
getLocation
();
/** @see
JavaFileManager#setLocation.
*/
/** @see
StandardJavaFileManager#setLocation
*/
abstract
void
setLocation
(
Iterable
<?
extends
File
>
files
)
throws
IOException
;
abstract
void
setLocation
(
Iterable
<?
extends
File
>
files
)
throws
IOException
;
}
}
...
...
src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java
浏览文件 @
10e233b2
...
@@ -59,7 +59,7 @@ import com.sun.tools.javac.file.RelativePath.RelativeFile;
...
@@ -59,7 +59,7 @@ import com.sun.tools.javac.file.RelativePath.RelativeFile;
* the command line.)
* the command line.)
*
*
* Location where to look for/generate optimized zip index files can be
* Location where to look for/generate optimized zip index files can be
* provided using "
-XDcachezipindexdir=<directory>
". If this flag is not
* provided using "
{@code -XDcachezipindexdir=<directory>}
". If this flag is not
* provided, the default location is the value of the "java.io.tmpdir" system
* provided, the default location is the value of the "java.io.tmpdir" system
* property.
* property.
*
*
...
...
src/share/classes/com/sun/tools/javac/jvm/Gen.java
浏览文件 @
10e233b2
...
@@ -446,7 +446,7 @@ public class Gen extends JCTree.Visitor {
...
@@ -446,7 +446,7 @@ public class Gen extends JCTree.Visitor {
* Normalizing class-members.
* Normalizing class-members.
*************************************************************************/
*************************************************************************/
/** Distribute member initializer code into constructors and
<clinit>
/** Distribute member initializer code into constructors and
{@code <clinit>}
* method.
* method.
* @param defs The list of class member declarations.
* @param defs The list of class member declarations.
* @param c The enclosing class.
* @param c The enclosing class.
...
@@ -689,7 +689,7 @@ public class Gen extends JCTree.Visitor {
...
@@ -689,7 +689,7 @@ public class Gen extends JCTree.Visitor {
* should be emitted, if so, put a new entry into CRTable
* should be emitted, if so, put a new entry into CRTable
* and call method to generate bytecode.
* and call method to generate bytecode.
* If not, just call method to generate bytecode.
* If not, just call method to generate bytecode.
* @see #genStat(Tree, Env)
* @see #genStat(
JC
Tree, Env)
*
*
* @param tree The tree to be visited.
* @param tree The tree to be visited.
* @param env The environment to use.
* @param env The environment to use.
...
@@ -756,7 +756,7 @@ public class Gen extends JCTree.Visitor {
...
@@ -756,7 +756,7 @@ public class Gen extends JCTree.Visitor {
* should be emitted, if so, put a new entry into CRTable
* should be emitted, if so, put a new entry into CRTable
* and call method to generate bytecode.
* and call method to generate bytecode.
* If not, just call method to generate bytecode.
* If not, just call method to generate bytecode.
* @see #genCond(Tree,boolean)
* @see #genCond(
JC
Tree,boolean)
*
*
* @param tree The tree to be visited.
* @param tree The tree to be visited.
* @param crtFlags The CharacterRangeTable flags
* @param crtFlags The CharacterRangeTable flags
...
...
src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
浏览文件 @
10e233b2
...
@@ -607,7 +607,7 @@ public class JavaCompiler implements ClassReader.SourceCompleter {
...
@@ -607,7 +607,7 @@ public class JavaCompiler implements ClassReader.SourceCompleter {
/** Parse contents of input stream.
/** Parse contents of input stream.
* @param filename The name of the file from which input stream comes.
* @param filename The name of the file from which input stream comes.
* @param
input The input stream
to be parsed.
* @param
content The characters
to be parsed.
*/
*/
protected
JCCompilationUnit
parse
(
JavaFileObject
filename
,
CharSequence
content
)
{
protected
JCCompilationUnit
parse
(
JavaFileObject
filename
,
CharSequence
content
)
{
long
msec
=
now
();
long
msec
=
now
();
...
@@ -755,8 +755,6 @@ public class JavaCompiler implements ClassReader.SourceCompleter {
...
@@ -755,8 +755,6 @@ public class JavaCompiler implements ClassReader.SourceCompleter {
/** Complete compiling a source file that has been accessed
/** Complete compiling a source file that has been accessed
* by the class file reader.
* by the class file reader.
* @param c The class the source file of which needs to be compiled.
* @param c The class the source file of which needs to be compiled.
* @param filename The name of the source file.
* @param f An input stream that reads the source file.
*/
*/
public
void
complete
(
ClassSymbol
c
)
throws
CompletionFailure
{
public
void
complete
(
ClassSymbol
c
)
throws
CompletionFailure
{
// System.err.println("completing " + c);//DEBUG
// System.err.println("completing " + c);//DEBUG
...
...
src/share/classes/com/sun/tools/javac/nio/PathFileManager.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009,
2012,
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
...
@@ -27,13 +27,14 @@ package com.sun.tools.javac.nio;
...
@@ -27,13 +27,14 @@ package com.sun.tools.javac.nio;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.nio.file.FileSystem
;
import
java.nio.file.FileSystem
;
import
java.nio.file.FileSystems
;
import
java.nio.file.Path
;
import
java.nio.file.Path
;
import
javax.tools.FileObject
;
import
javax.tools.FileObject
;
import
javax.tools.JavaFileManager
;
import
javax.tools.JavaFileManager
;
import
javax.tools.JavaFileObject
;
import
javax.tools.JavaFileObject
;
/**
/**
* File manager based on {@link
plain File
java.nio.file.Path}.
* File manager based on {@link java.nio.file.Path}.
*
*
* Eventually, this should be moved to javax.tools.
* Eventually, this should be moved to javax.tools.
* Also, JavaCompiler might reasonably provide a method getPathFileManager,
* Also, JavaCompiler might reasonably provide a method getPathFileManager,
...
...
src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java
浏览文件 @
10e233b2
...
@@ -108,8 +108,7 @@ public class JavaTokenizer {
...
@@ -108,8 +108,7 @@ public class JavaTokenizer {
* {@code input[input.length -1]} is a white space character.
* {@code input[input.length -1]} is a white space character.
*
*
* @param fac the factory which created this Scanner
* @param fac the factory which created this Scanner
* @param input the input, might be modified
* @param buf the input, might be modified
* @param inputLength the size of the input.
* Must be positive and less than or equal to input.length.
* Must be positive and less than or equal to input.length.
*/
*/
protected
JavaTokenizer
(
ScannerFactory
fac
,
CharBuffer
buf
)
{
protected
JavaTokenizer
(
ScannerFactory
fac
,
CharBuffer
buf
)
{
...
...
src/share/classes/com/sun/tools/javac/parser/Scanner.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1999, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
2
, 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
...
@@ -66,8 +66,7 @@ public class Scanner implements Lexer {
...
@@ -66,8 +66,7 @@ public class Scanner implements Lexer {
* {@code input[input.length -1]} is a white space character.
* {@code input[input.length -1]} is a white space character.
*
*
* @param fac the factory which created this Scanner
* @param fac the factory which created this Scanner
* @param input the input, might be modified
* @param buf the input, might be modified
* @param inputLength the size of the input.
* Must be positive and less than or equal to input.length.
* Must be positive and less than or equal to input.length.
*/
*/
protected
Scanner
(
ScannerFactory
fac
,
CharBuffer
buf
)
{
protected
Scanner
(
ScannerFactory
fac
,
CharBuffer
buf
)
{
...
...
src/share/classes/com/sun/tools/javac/parser/UnicodeReader.java
浏览文件 @
10e233b2
...
@@ -77,9 +77,8 @@ public class UnicodeReader {
...
@@ -77,9 +77,8 @@ public class UnicodeReader {
* that {@code inputLength < input.length} or
* that {@code inputLength < input.length} or
* {@code input[input.length -1]} is a white space character.
* {@code input[input.length -1]} is a white space character.
*
*
* @param fac the factory which created this Scanner
* @param sf the factory which created this Scanner
* @param input the input, might be modified
* @param buffer the input, might be modified
* @param inputLength the size of the input.
* Must be positive and less than or equal to input.length.
* Must be positive and less than or equal to input.length.
*/
*/
protected
UnicodeReader
(
ScannerFactory
sf
,
CharBuffer
buffer
)
{
protected
UnicodeReader
(
ScannerFactory
sf
,
CharBuffer
buffer
)
{
...
@@ -255,16 +254,16 @@ public class UnicodeReader {
...
@@ -255,16 +254,16 @@ public class UnicodeReader {
/**
/**
* Returns a copy of a character array subset of the input buffer.
* Returns a copy of a character array subset of the input buffer.
* The returned array begins at the
<code>beginIndex</code>
and
* The returned array begins at the
{@code beginIndex}
and
* extends to the character at index
<code>endIndex - 1</code>
.
* extends to the character at index
{@code endIndex - 1}
.
* Thus the length of the substring is
<code>endIndex-beginIndex</code>
.
* Thus the length of the substring is
{@code endIndex-beginIndex}
.
* This behavior is like
* This behavior is like
*
<code>String.substring(beginIndex, endIndex)</code>
.
*
{@code String.substring(beginIndex, endIndex)}
.
* Unicode escape sequences are not translated.
* Unicode escape sequences are not translated.
*
*
* @param beginIndex the beginning index, inclusive.
* @param beginIndex the beginning index, inclusive.
* @param endIndex the ending index, exclusive.
* @param endIndex the ending index, exclusive.
* @throws
IndexOutOfBounds
if either offset is outside of the
* @throws
ArrayIndexOutOfBoundsException
if either offset is outside of the
* array bounds
* array bounds
*/
*/
public
char
[]
getRawCharacters
(
int
beginIndex
,
int
endIndex
)
{
public
char
[]
getRawCharacters
(
int
beginIndex
,
int
endIndex
)
{
...
...
src/share/classes/com/sun/tools/javac/processing/JavacRoundEnvironment.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
2
, 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
...
@@ -105,7 +105,7 @@ public class JavacRoundEnvironment implements RoundEnvironment {
...
@@ -105,7 +105,7 @@ public class JavacRoundEnvironment implements RoundEnvironment {
* Only type elements <i>included</i> in this round of annotation
* Only type elements <i>included</i> in this round of annotation
* processing, or declarations of members, parameters, or type
* processing, or declarations of members, parameters, or type
* parameters declared within those, are returned. Included type
* parameters declared within those, are returned. Included type
* elements are {@linkplain #get
SpecifiedType
Elements specified
* elements are {@linkplain #get
Root
Elements specified
* types} and any types nested within them.
* types} and any types nested within them.
*
*
* @param a annotation type being requested
* @param a annotation type being requested
...
...
src/share/classes/com/sun/tools/javac/processing/ServiceProxy.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2006, 20
08
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 20
12
, 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
...
@@ -72,7 +72,7 @@ class ServiceProxy {
...
@@ -72,7 +72,7 @@ class ServiceProxy {
* The service class for which providers are being sought;
* The service class for which providers are being sought;
* used to construct error detail strings
* used to construct error detail strings
*
*
* @param u
rl
* @param u
* The URL naming the configuration file to be parsed
* The URL naming the configuration file to be parsed
*
*
* @return true if the name of a service is found
* @return true if the name of a service is found
...
...
src/share/classes/com/sun/tools/javac/tree/JCTree.java
浏览文件 @
10e233b2
...
@@ -464,32 +464,29 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -464,32 +464,29 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
}
}
/**
/**
* Everything in one source file is kept in a TopLevel structure.
* Everything in one source file is kept in a {@linkplain JCCompilationUnit} structure.
* @param pid The tree representing the package clause.
* @param sourcefile The source file name.
* @param defs All definitions in this file (ClassDef, Import, and Skip)
* @param packge The package it belongs to.
* @param namedImportScope A scope for all named imports.
* @param starImportScope A scope for all import-on-demands.
* @param lineMap Line starting positions, defined only
* if option -g is set.
* @param docComments A hashtable that stores all documentation comments
* indexed by the tree nodes they refer to.
* defined only if option -s is set.
* @param endPositions An object encapsulating ending positions of source
* ranges indexed by the tree nodes they belong to.
* Defined only if option -Xjcov is set.
*/
*/
public
static
class
JCCompilationUnit
extends
JCTree
implements
CompilationUnitTree
{
public
static
class
JCCompilationUnit
extends
JCTree
implements
CompilationUnitTree
{
public
List
<
JCAnnotation
>
packageAnnotations
;
public
List
<
JCAnnotation
>
packageAnnotations
;
/** The tree representing the package clause. */
public
JCExpression
pid
;
public
JCExpression
pid
;
/** All definitions in this file (ClassDef, Import, and Skip) */
public
List
<
JCTree
>
defs
;
public
List
<
JCTree
>
defs
;
/* The source file name. */
public
JavaFileObject
sourcefile
;
public
JavaFileObject
sourcefile
;
/** The package to which this compilation unit belongs. */
public
PackageSymbol
packge
;
public
PackageSymbol
packge
;
/** A scope for all named imports. */
public
ImportScope
namedImportScope
;
public
ImportScope
namedImportScope
;
/** A scope for all import-on-demands. */
public
StarImportScope
starImportScope
;
public
StarImportScope
starImportScope
;
/** Line starting positions, defined only if option -g is set. */
public
Position
.
LineMap
lineMap
=
null
;
public
Position
.
LineMap
lineMap
=
null
;
/** A table that stores all documentation comments indexed by the tree
* nodes they refer to. defined only if option -s is set. */
public
DocCommentTable
docComments
=
null
;
public
DocCommentTable
docComments
=
null
;
/* An object encapsulating ending positions of source ranges indexed by
* the tree nodes they belong to. Defined only if option -Xjcov is set. */
public
EndPosTable
endPositions
=
null
;
public
EndPosTable
endPositions
=
null
;
protected
JCCompilationUnit
(
List
<
JCAnnotation
>
packageAnnotations
,
protected
JCCompilationUnit
(
List
<
JCAnnotation
>
packageAnnotations
,
JCExpression
pid
,
JCExpression
pid
,
...
@@ -550,10 +547,10 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -550,10 +547,10 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* An import clause.
* An import clause.
* @param qualid The imported class(es).
*/
*/
public
static
class
JCImport
extends
JCTree
implements
ImportTree
{
public
static
class
JCImport
extends
JCTree
implements
ImportTree
{
public
boolean
staticImport
;
public
boolean
staticImport
;
/** The imported class(es). */
public
JCTree
qualid
;
public
JCTree
qualid
;
protected
JCImport
(
JCTree
qualid
,
boolean
importStatic
)
{
protected
JCImport
(
JCTree
qualid
,
boolean
importStatic
)
{
this
.
qualid
=
qualid
;
this
.
qualid
=
qualid
;
...
@@ -605,21 +602,21 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -605,21 +602,21 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* A class definition.
* A class definition.
* @param modifiers the modifiers
* @param name the name of the class
* @param typarams formal class parameters
* @param extending the classes this class extends
* @param implementing the interfaces implemented by this class
* @param defs all variables and methods defined in this class
* @param sym the symbol
*/
*/
public
static
class
JCClassDecl
extends
JCStatement
implements
ClassTree
{
public
static
class
JCClassDecl
extends
JCStatement
implements
ClassTree
{
/** the modifiers */
public
JCModifiers
mods
;
public
JCModifiers
mods
;
/** the name of the class */
public
Name
name
;
public
Name
name
;
/** formal class parameters */
public
List
<
JCTypeParameter
>
typarams
;
public
List
<
JCTypeParameter
>
typarams
;
/** the classes this class extends */
public
JCExpression
extending
;
public
JCExpression
extending
;
/** the interfaces implemented by this class */
public
List
<
JCExpression
>
implementing
;
public
List
<
JCExpression
>
implementing
;
/** all variables and methods defined in this class */
public
List
<
JCTree
>
defs
;
public
List
<
JCTree
>
defs
;
/** the symbol */
public
ClassSymbol
sym
;
public
ClassSymbol
sym
;
protected
JCClassDecl
(
JCModifiers
mods
,
protected
JCClassDecl
(
JCModifiers
mods
,
Name
name
,
Name
name
,
...
@@ -676,24 +673,25 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -676,24 +673,25 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* A method definition.
* A method definition.
* @param modifiers method modifiers
* @param name method name
* @param restype type of method return value
* @param typarams type parameters
* @param params value parameters
* @param thrown exceptions thrown by this method
* @param stats statements in the method
* @param sym method symbol
*/
*/
public
static
class
JCMethodDecl
extends
JCTree
implements
MethodTree
{
public
static
class
JCMethodDecl
extends
JCTree
implements
MethodTree
{
/** method modifiers */
public
JCModifiers
mods
;
public
JCModifiers
mods
;
/** method name */
public
Name
name
;
public
Name
name
;
/** type of method return value */
public
JCExpression
restype
;
public
JCExpression
restype
;
/** type parameters */
public
List
<
JCTypeParameter
>
typarams
;
public
List
<
JCTypeParameter
>
typarams
;
/** value parameters */
public
List
<
JCVariableDecl
>
params
;
public
List
<
JCVariableDecl
>
params
;
/** exceptions thrown by this method */
public
List
<
JCExpression
>
thrown
;
public
List
<
JCExpression
>
thrown
;
/** statements in the method */
public
JCBlock
body
;
public
JCBlock
body
;
public
JCExpression
defaultValue
;
// for annotation types
/** default value, for annotation types */
public
JCExpression
defaultValue
;
/** method symbol */
public
MethodSymbol
sym
;
public
MethodSymbol
sym
;
protected
JCMethodDecl
(
JCModifiers
mods
,
protected
JCMethodDecl
(
JCModifiers
mods
,
Name
name
,
Name
name
,
...
@@ -748,17 +746,17 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -748,17 +746,17 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* A variable definition.
* A variable definition.
* @param modifiers variable modifiers
* @param name variable name
* @param vartype type of the variable
* @param init variables initial value
* @param sym symbol
*/
*/
public
static
class
JCVariableDecl
extends
JCStatement
implements
VariableTree
{
public
static
class
JCVariableDecl
extends
JCStatement
implements
VariableTree
{
/** variable modifiers */
public
JCModifiers
mods
;
public
JCModifiers
mods
;
/** variable name */
public
Name
name
;
public
Name
name
;
/** type of the variable */
public
JCExpression
vartype
;
public
JCExpression
vartype
;
/** variable's initial value */
public
JCExpression
init
;
public
JCExpression
init
;
/** symbol */
public
VarSymbol
sym
;
public
VarSymbol
sym
;
protected
JCVariableDecl
(
JCModifiers
mods
,
protected
JCVariableDecl
(
JCModifiers
mods
,
Name
name
,
Name
name
,
...
@@ -815,11 +813,11 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -815,11 +813,11 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* A statement block.
* A statement block.
* @param stats statements
* @param flags flags
*/
*/
public
static
class
JCBlock
extends
JCStatement
implements
BlockTree
{
public
static
class
JCBlock
extends
JCStatement
implements
BlockTree
{
/** flags */
public
long
flags
;
public
long
flags
;
/** statements */
public
List
<
JCStatement
>
stats
;
public
List
<
JCStatement
>
stats
;
/** Position of closing brace, optional. */
/** Position of closing brace, optional. */
public
int
endpos
=
Position
.
NOPOS
;
public
int
endpos
=
Position
.
NOPOS
;
...
@@ -1206,9 +1204,9 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -1206,9 +1204,9 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* an expression statement
* an expression statement
* @param expr expression structure
*/
*/
public
static
class
JCExpressionStatement
extends
JCStatement
implements
ExpressionStatementTree
{
public
static
class
JCExpressionStatement
extends
JCStatement
implements
ExpressionStatementTree
{
/** expression structure */
public
JCExpression
expr
;
public
JCExpression
expr
;
protected
JCExpressionStatement
(
JCExpression
expr
)
protected
JCExpressionStatement
(
JCExpression
expr
)
{
{
...
@@ -1776,13 +1774,13 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -1776,13 +1774,13 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* Selects through packages and classes
* Selects through packages and classes
* @param selected selected Tree hierarchie
* @param selector name of field to select thru
* @param sym symbol of the selected class
*/
*/
public
static
class
JCFieldAccess
extends
JCExpression
implements
MemberSelectTree
{
public
static
class
JCFieldAccess
extends
JCExpression
implements
MemberSelectTree
{
/** selected Tree hierarchy */
public
JCExpression
selected
;
public
JCExpression
selected
;
/** name of field to select thru */
public
Name
name
;
public
Name
name
;
/** symbol of the selected class */
public
Symbol
sym
;
public
Symbol
sym
;
protected
JCFieldAccess
(
JCExpression
selected
,
Name
name
,
Symbol
sym
)
{
protected
JCFieldAccess
(
JCExpression
selected
,
Name
name
,
Symbol
sym
)
{
this
.
selected
=
selected
;
this
.
selected
=
selected
;
...
@@ -1885,11 +1883,11 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -1885,11 +1883,11 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* An identifier
* An identifier
* @param idname the name
* @param sym the symbol
*/
*/
public
static
class
JCIdent
extends
JCExpression
implements
IdentifierTree
{
public
static
class
JCIdent
extends
JCExpression
implements
IdentifierTree
{
/** the name */
public
Name
name
;
public
Name
name
;
/** the symbol */
public
Symbol
sym
;
public
Symbol
sym
;
protected
JCIdent
(
Name
name
,
Symbol
sym
)
{
protected
JCIdent
(
Name
name
,
Symbol
sym
)
{
this
.
name
=
name
;
this
.
name
=
name
;
...
@@ -1912,10 +1910,10 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -1912,10 +1910,10 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* A constant value given literally.
* A constant value given literally.
* @param value value representation
*/
*/
public
static
class
JCLiteral
extends
JCExpression
implements
LiteralTree
{
public
static
class
JCLiteral
extends
JCExpression
implements
LiteralTree
{
public
int
typetag
;
public
int
typetag
;
/** value representation */
public
Object
value
;
public
Object
value
;
protected
JCLiteral
(
int
typetag
,
Object
value
)
{
protected
JCLiteral
(
int
typetag
,
Object
value
)
{
this
.
typetag
=
typetag
;
this
.
typetag
=
typetag
;
...
@@ -1978,10 +1976,10 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -1978,10 +1976,10 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* Identifies a basic type.
* Identifies a basic type.
* @param tag the basic type id
* @see TypeTags
* @see TypeTags
*/
*/
public
static
class
JCPrimitiveTypeTree
extends
JCExpression
implements
PrimitiveTypeTree
{
public
static
class
JCPrimitiveTypeTree
extends
JCExpression
implements
PrimitiveTypeTree
{
/** the basic type id */
public
int
typetag
;
public
int
typetag
;
protected
JCPrimitiveTypeTree
(
int
typetag
)
{
protected
JCPrimitiveTypeTree
(
int
typetag
)
{
this
.
typetag
=
typetag
;
this
.
typetag
=
typetag
;
...
@@ -2105,11 +2103,11 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
...
@@ -2105,11 +2103,11 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
/**
/**
* A formal class parameter.
* A formal class parameter.
* @param name name
* @param bounds bounds
*/
*/
public
static
class
JCTypeParameter
extends
JCTree
implements
TypeParameterTree
{
public
static
class
JCTypeParameter
extends
JCTree
implements
TypeParameterTree
{
/** name */
public
Name
name
;
public
Name
name
;
/** bounds */
public
List
<
JCExpression
>
bounds
;
public
List
<
JCExpression
>
bounds
;
protected
JCTypeParameter
(
Name
name
,
List
<
JCExpression
>
bounds
)
{
protected
JCTypeParameter
(
Name
name
,
List
<
JCExpression
>
bounds
)
{
this
.
name
=
name
;
this
.
name
=
name
;
...
...
src/share/classes/com/sun/tools/javac/util/AbstractDiagnosticFormatter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2008, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 201
2
, 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
...
@@ -484,7 +484,7 @@ public abstract class AbstractDiagnosticFormatter implements DiagnosticFormatter
...
@@ -484,7 +484,7 @@ public abstract class AbstractDiagnosticFormatter implements DiagnosticFormatter
/**
/**
* Tells whether the caret display is active or not.
* Tells whether the caret display is active or not.
*
*
* @
param caretEnabled if true
the caret is enabled
* @
return true if
the caret is enabled
*/
*/
public
boolean
isCaretEnabled
()
{
public
boolean
isCaretEnabled
()
{
return
caretEnabled
;
return
caretEnabled
;
...
...
src/share/classes/com/sun/tools/javac/util/AbstractLog.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1999, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
2
, 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
...
@@ -132,7 +132,6 @@ public abstract class AbstractLog {
...
@@ -132,7 +132,6 @@ public abstract class AbstractLog {
/** Report a warning, unless suppressed by the -nowarn option or the
/** Report a warning, unless suppressed by the -nowarn option or the
* maximum number of warnings has been reached.
* maximum number of warnings has been reached.
* @param pos The source position at which to report the warning.
* @param key The key for the localized warning message.
* @param key The key for the localized warning message.
* @param args Fields of the warning message.
* @param args Fields of the warning message.
*/
*/
...
...
src/share/classes/com/sun/tools/javac/util/BasicDiagnosticFormatter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
2
, 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
...
@@ -69,7 +69,7 @@ public class BasicDiagnosticFormatter extends AbstractDiagnosticFormatter {
...
@@ -69,7 +69,7 @@ public class BasicDiagnosticFormatter extends AbstractDiagnosticFormatter {
/**
/**
* Create a basic formatter based on the supplied options.
* Create a basic formatter based on the supplied options.
*
*
* @param opts list of command-line options
* @param opt
ion
s list of command-line options
* @param msgs JavacMessages object used for i18n
* @param msgs JavacMessages object used for i18n
*/
*/
public
BasicDiagnosticFormatter
(
Options
options
,
JavacMessages
msgs
)
{
public
BasicDiagnosticFormatter
(
Options
options
,
JavacMessages
msgs
)
{
...
@@ -329,7 +329,7 @@ public class BasicDiagnosticFormatter extends AbstractDiagnosticFormatter {
...
@@ -329,7 +329,7 @@ public class BasicDiagnosticFormatter extends AbstractDiagnosticFormatter {
* Set the indentation level for various element of a given diagnostic -
* Set the indentation level for various element of a given diagnostic -
* this might lead to more readable diagnostics
* this might lead to more readable diagnostics
*
*
* @param
indentationKind kind of indentation to be se
t
* @param
diagPar
t
* @param nSpaces amount of spaces for the specified diagnostic part
* @param nSpaces amount of spaces for the specified diagnostic part
*/
*/
public
void
setIndentation
(
DiagnosticPart
diagPart
,
int
nSpaces
)
{
public
void
setIndentation
(
DiagnosticPart
diagPart
,
int
nSpaces
)
{
...
@@ -384,7 +384,7 @@ public class BasicDiagnosticFormatter extends AbstractDiagnosticFormatter {
...
@@ -384,7 +384,7 @@ public class BasicDiagnosticFormatter extends AbstractDiagnosticFormatter {
/**
/**
* Get a metachar string for a specific format
* Get a metachar string for a specific format
*
*
* @param
sourcePos a positioning value for source line
* @param
kind the format kind for which to get the metachar string
*/
*/
public
String
getFormat
(
BasicFormatKind
kind
)
{
public
String
getFormat
(
BasicFormatKind
kind
)
{
return
availableFormats
.
get
(
kind
);
return
availableFormats
.
get
(
kind
);
...
...
src/share/classes/com/sun/tools/javac/util/Context.java
浏览文件 @
10e233b2
...
@@ -44,7 +44,7 @@ import java.util.*;
...
@@ -44,7 +44,7 @@ import java.util.*;
* instance method that is overridden in extended components. A base
* instance method that is overridden in extended components. A base
* phase supporting extension would look something like this:
* phase supporting extension would look something like this:
*
*
* <p><pre>
* <p><pre>
{@code
* public class Phase {
* public class Phase {
* protected static final Context.Key<Phase> phaseKey =
* protected static final Context.Key<Phase> phaseKey =
* new Context.Key<Phase>();
* new Context.Key<Phase>();
...
@@ -62,7 +62,7 @@ import java.util.*;
...
@@ -62,7 +62,7 @@ import java.util.*;
* // other intitialization follows...
* // other intitialization follows...
* }
* }
* }
* }
* </pre>
*
}
</pre>
*
*
* <p>In the compiler, we simply use Phase.instance(context) to get
* <p>In the compiler, we simply use Phase.instance(context) to get
* the reference to the phase. But in extensions of the compiler, we
* the reference to the phase. But in extensions of the compiler, we
...
@@ -70,7 +70,7 @@ import java.util.*;
...
@@ -70,7 +70,7 @@ import java.util.*;
* and this must be done before any reference to the phase is accessed
* and this must be done before any reference to the phase is accessed
* using Phase.instance(). An extended phase might be declared thus:
* using Phase.instance(). An extended phase might be declared thus:
*
*
* <p><pre>
* <p><pre>
{@code
* public class NewPhase extends Phase {
* public class NewPhase extends Phase {
* protected NewPhase(Context context) {
* protected NewPhase(Context context) {
* super(context);
* super(context);
...
@@ -83,7 +83,7 @@ import java.util.*;
...
@@ -83,7 +83,7 @@ import java.util.*;
* });
* });
* }
* }
* }
* }
* </pre>
*
}
</pre>
*
*
* <p>And is registered early in the extended compiler like this
* <p>And is registered early in the extended compiler like this
*
*
...
...
src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java
浏览文件 @
10e233b2
...
@@ -213,7 +213,6 @@ public class JCDiagnostic implements Diagnostic<JavaFileObject> {
...
@@ -213,7 +213,6 @@ public class JCDiagnostic implements Diagnostic<JavaFileObject> {
* Create a new diagnostic of the given kind, which is not mandatory and which has
* Create a new diagnostic of the given kind, which is not mandatory and which has
* no lint category.
* no lint category.
* @param kind The diagnostic kind
* @param kind The diagnostic kind
* @param ls The lint category, if applicable, or null
* @param source The source of the compilation unit, if any, in which to report the message.
* @param source The source of the compilation unit, if any, in which to report the message.
* @param pos The source position at which to report the message.
* @param pos The source position at which to report the message.
* @param key The key for the localized message.
* @param key The key for the localized message.
...
@@ -228,7 +227,7 @@ public class JCDiagnostic implements Diagnostic<JavaFileObject> {
...
@@ -228,7 +227,7 @@ public class JCDiagnostic implements Diagnostic<JavaFileObject> {
* Create a new diagnostic of the given kind.
* Create a new diagnostic of the given kind.
* @param kind The diagnostic kind
* @param kind The diagnostic kind
* @param lc The lint category, if applicable, or null
* @param lc The lint category, if applicable, or null
* @param
isMandatory is diagnostic mandatory?
* @param
flags The set of flags for the diagnostic
* @param source The source of the compilation unit, if any, in which to report the message.
* @param source The source of the compilation unit, if any, in which to report the message.
* @param pos The source position at which to report the message.
* @param pos The source position at which to report the message.
* @param key The key for the localized message.
* @param key The key for the localized message.
...
@@ -363,7 +362,7 @@ public class JCDiagnostic implements Diagnostic<JavaFileObject> {
...
@@ -363,7 +362,7 @@ public class JCDiagnostic implements Diagnostic<JavaFileObject> {
/**
/**
* Create a diagnostic object.
* Create a diagnostic object.
* @param fomatter the formatter to use for the diagnostic
* @param fo
r
matter the formatter to use for the diagnostic
* @param dt the type of diagnostic
* @param dt the type of diagnostic
* @param lc the lint category for the diagnostic
* @param lc the lint category for the diagnostic
* @param source the name of the source file, or null if none.
* @param source the name of the source file, or null if none.
...
...
src/share/classes/com/sun/tools/javac/util/Position.java
浏览文件 @
10e233b2
...
@@ -80,11 +80,11 @@ public class Position {
...
@@ -80,11 +80,11 @@ public class Position {
/** Encode line and column numbers in an integer as:
/** Encode line and column numbers in an integer as:
* {@code line-number << LINESHIFT + column-number }.
* {@code line-number << LINESHIFT + column-number }.
* {@link Position
.
NOPOS} represents an undefined position.
* {@link Position
#
NOPOS} represents an undefined position.
*
*
* @param line number of line (first is 1)
* @param line number of line (first is 1)
* @param col number of character on line (first is 1)
* @param col number of character on line (first is 1)
* @return an encoded position or {@link Position
.
NOPOS}
* @return an encoded position or {@link Position
#
NOPOS}
* if the line or column number is too big to
* if the line or column number is too big to
* represent in the encoded format
* represent in the encoded format
* @throws IllegalArgumentException if line or col is less than 1
* @throws IllegalArgumentException if line or col is less than 1
...
...
src/share/classes/com/sun/tools/javac/util/RawDiagnosticFormatter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2008, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 201
2
, 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
...
@@ -52,7 +52,7 @@ public final class RawDiagnosticFormatter extends AbstractDiagnosticFormatter {
...
@@ -52,7 +52,7 @@ public final class RawDiagnosticFormatter extends AbstractDiagnosticFormatter {
/**
/**
* Create a formatter based on the supplied options.
* Create a formatter based on the supplied options.
* @param
msg
s
* @param
option
s
*/
*/
public
RawDiagnosticFormatter
(
Options
options
)
{
public
RawDiagnosticFormatter
(
Options
options
)
{
super
(
null
,
new
SimpleConfiguration
(
options
,
super
(
null
,
new
SimpleConfiguration
(
options
,
...
...
src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java
浏览文件 @
10e233b2
...
@@ -844,7 +844,7 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
...
@@ -844,7 +844,7 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
* Note that this is not necessarily what the compiler would do!
* Note that this is not necessarily what the compiler would do!
*
*
* @param methodName the unqualified name to search for.
* @param methodName the unqualified name to search for.
* @param paramType
Array
the array of Strings for method parameter types.
* @param paramType
s
the array of Strings for method parameter types.
* @return the first MethodDocImpl which matches, null if not found.
* @return the first MethodDocImpl which matches, null if not found.
*/
*/
public
MethodDocImpl
findMethod
(
String
methodName
,
String
[]
paramTypes
)
{
public
MethodDocImpl
findMethod
(
String
methodName
,
String
[]
paramTypes
)
{
...
@@ -971,7 +971,7 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
...
@@ -971,7 +971,7 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
* Find constructor in this class.
* Find constructor in this class.
*
*
* @param constrName the unqualified name to search for.
* @param constrName the unqualified name to search for.
* @param paramType
Array
the array of Strings for constructor parameters.
* @param paramType
s
the array of Strings for constructor parameters.
* @return the first ConstructorDocImpl which matches, null if not found.
* @return the first ConstructorDocImpl which matches, null if not found.
*/
*/
public
ConstructorDoc
findConstructor
(
String
constrName
,
public
ConstructorDoc
findConstructor
(
String
constrName
,
...
...
src/share/classes/com/sun/tools/javadoc/DocImpl.java
浏览文件 @
10e233b2
...
@@ -262,7 +262,7 @@ public abstract class DocImpl implements Doc, Comparable<Object> {
...
@@ -262,7 +262,7 @@ public abstract class DocImpl implements Doc, Comparable<Object> {
* <p>
* <p>
* Included so that Doc item are java.lang.Comparable.
* Included so that Doc item are java.lang.Comparable.
*
*
* @param o
the <code>Object</code>
to be compared.
* @param o
bj the {@code Object}
to be compared.
* @return a negative integer, zero, or a positive integer as this Object
* @return a negative integer, zero, or a positive integer as this Object
* is less than, equal to, or greater than the given Object.
* is less than, equal to, or greater than the given Object.
* @exception ClassCastException the specified Object's type prevents it
* @exception ClassCastException the specified Object's type prevents it
...
...
src/share/classes/com/sun/tools/javadoc/JavadocTool.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2001, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
2
, 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
...
@@ -386,7 +386,7 @@ public class JavadocTool extends com.sun.tools.javac.main.JavaCompiler {
...
@@ -386,7 +386,7 @@ public class JavadocTool extends com.sun.tools.javac.main.JavaCompiler {
/**
/**
* Return true if given file name is a valid class name
* Return true if given file name is a valid class name
* (including "package-info").
* (including "package-info").
* @param
clazzname
the name of the class to check.
* @param
s
the name of the class to check.
* @return true if given class name is a valid class name
* @return true if given class name is a valid class name
* and false otherwise.
* and false otherwise.
*/
*/
...
...
src/share/classes/com/sun/tools/javadoc/ModifierFilter.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2000, 20
03
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 20
12
, 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
...
@@ -32,7 +32,7 @@ import static com.sun.tools.javac.code.Flags.*;
...
@@ -32,7 +32,7 @@ import static com.sun.tools.javac.code.Flags.*;
* Filtering is done by returning boolean values.
* Filtering is done by returning boolean values.
* Classes, methods and fields can be filtered, or filtering
* Classes, methods and fields can be filtered, or filtering
* can be done directly on modifier bits.
* can be done directly on modifier bits.
* @see com.sun.tools.javac.code.Flags
;
* @see com.sun.tools.javac.code.Flags
* @author Robert Field
* @author Robert Field
*/
*/
...
...
src/share/classes/com/sun/tools/javadoc/ParamTagImpl.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
@@ -101,8 +101,8 @@ class ParamTagImpl extends TagImpl implements ParamTag {
...
@@ -101,8 +101,8 @@ class ParamTagImpl extends TagImpl implements ParamTag {
* TagImpls consisting of SeeTagImpl(s) and text containing TagImpl(s).
* TagImpls consisting of SeeTagImpl(s) and text containing TagImpl(s).
*
*
* @return TagImpl[] Array of tags with inline SeeTagImpls.
* @return TagImpl[] Array of tags with inline SeeTagImpls.
* @see TagImpl#inlineTag
Impl
s()
* @see TagImpl#inlineTags()
* @see ThrowsTagImpl#inlineTag
Impl
s()
* @see ThrowsTagImpl#inlineTags()
*/
*/
@Override
@Override
public
Tag
[]
inlineTags
()
{
public
Tag
[]
inlineTags
()
{
...
...
src/share/classes/com/sun/tools/javadoc/ThrowsTagImpl.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
2
, 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
...
@@ -108,8 +108,8 @@ class ThrowsTagImpl extends TagImpl implements ThrowsTag {
...
@@ -108,8 +108,8 @@ class ThrowsTagImpl extends TagImpl implements ThrowsTag {
* TagImpls consisting of SeeTagImpl(s) and text containing TagImpl(s).
* TagImpls consisting of SeeTagImpl(s) and text containing TagImpl(s).
*
*
* @return TagImpl[] Array of tags with inline SeeTagImpls.
* @return TagImpl[] Array of tags with inline SeeTagImpls.
* @see TagImpl#inlineTag
Impl
s()
* @see TagImpl#inlineTags()
* @see ParamTagImpl#inlineTag
Impl
s()
* @see ParamTagImpl#inlineTags()
*/
*/
@Override
@Override
public
Tag
[]
inlineTags
()
{
public
Tag
[]
inlineTags
()
{
...
...
src/share/classes/com/sun/tools/javah/NativeHeaderTool.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2005, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
12
, 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
...
@@ -29,11 +29,13 @@ import java.io.Writer;
...
@@ -29,11 +29,13 @@ import java.io.Writer;
import
java.nio.charset.Charset
;
import
java.nio.charset.Charset
;
import
java.util.Locale
;
import
java.util.Locale
;
import
java.util.concurrent.Callable
;
import
java.util.concurrent.Callable
;
import
javax.tools.Diagnostic
;
import
javax.tools.DiagnosticListener
;
import
javax.tools.DiagnosticListener
;
import
javax.tools.JavaFileManager
;
import
javax.tools.JavaFileManager
;
import
javax.tools.JavaFileObject
;
import
javax.tools.JavaFileObject
;
import
javax.tools.OptionChecker
;
import
javax.tools.OptionChecker
;
import
javax.tools.StandardJavaFileManager
;
import
javax.tools.StandardJavaFileManager
;
import
javax.tools.StandardLocation
;
import
javax.tools.Tool
;
import
javax.tools.Tool
;
/**
/**
...
...
src/share/classes/com/sun/tools/javap/DisassemblerTool.java
浏览文件 @
10e233b2
/*
/*
* Copyright (c) 2005, 20
08
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
12
, 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
...
@@ -29,11 +29,13 @@ import java.io.Writer;
...
@@ -29,11 +29,13 @@ import java.io.Writer;
import
java.nio.charset.Charset
;
import
java.nio.charset.Charset
;
import
java.util.Locale
;
import
java.util.Locale
;
import
java.util.concurrent.Callable
;
import
java.util.concurrent.Callable
;
import
javax.tools.Diagnostic
;
import
javax.tools.DiagnosticListener
;
import
javax.tools.DiagnosticListener
;
import
javax.tools.JavaFileManager
;
import
javax.tools.JavaFileManager
;
import
javax.tools.JavaFileObject
;
import
javax.tools.JavaFileObject
;
import
javax.tools.OptionChecker
;
import
javax.tools.OptionChecker
;
import
javax.tools.StandardJavaFileManager
;
import
javax.tools.StandardJavaFileManager
;
import
javax.tools.StandardLocation
;
import
javax.tools.Tool
;
import
javax.tools.Tool
;
/**
/**
...
@@ -69,9 +71,7 @@ public interface DisassemblerTool extends Tool, OptionChecker {
...
@@ -69,9 +71,7 @@ public interface DisassemblerTool extends Tool, OptionChecker {
* @param options compiler options, {@code null} means no options
* @param options compiler options, {@code null} means no options
* @param classes class names (for annotation processing), {@code
* @param classes class names (for annotation processing), {@code
* null} means no class names
* null} means no class names
* @param compilationUnits the compilation units to compile, {@code
* @return a task to perform the disassembly
* null} means no compilation units
* @return an object representing the compilation
* @throws RuntimeException if an unrecoverable error
* @throws RuntimeException if an unrecoverable error
* occurred in a user supplied component. The
* occurred in a user supplied component. The
* {@linkplain Throwable#getCause() cause} will be the error in
* {@linkplain Throwable#getCause() cause} will be the error in
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录