From 962dc7143f6dd5d2fb4835b8ec2f50b194fddf7b Mon Sep 17 00:00:00 2001 From: jjg Date: Tue, 19 Mar 2013 15:13:44 -0700 Subject: [PATCH] 8010315: doclint errors in javac public API Reviewed-by: darcy --- make/build.xml | 29 +++++++++++++++++-- .../com/sun/source/util/DocTreeScanner.java | 2 +- .../com/sun/source/util/JavacTask.java | 2 +- .../classes/com/sun/source/util/Plugin.java | 2 +- .../javax/lang/model/AnnotatedConstruct.java | 9 +++--- .../javax/lang/model/type/ExecutableType.java | 2 +- 6 files changed, 36 insertions(+), 10 deletions(-) diff --git a/make/build.xml b/make/build.xml index 9292ee3f..2d3da00b 100644 --- a/make/build.xml +++ b/make/build.xml @@ -1,6 +1,6 @@ @@ -678,7 +703,7 @@ jarclasspath="sjavac.jar"/> - + diff --git a/src/share/classes/com/sun/source/util/DocTreeScanner.java b/src/share/classes/com/sun/source/util/DocTreeScanner.java index eba4730f..4121f29d 100644 --- a/src/share/classes/com/sun/source/util/DocTreeScanner.java +++ b/src/share/classes/com/sun/source/util/DocTreeScanner.java @@ -53,7 +53,7 @@ import com.sun.source.doctree.*; * *

Here is an example to count the number of erroneous nodes in a tree: *

- *   class CountErrors extends DocTreeScanner {
+ *   class CountErrors extends DocTreeScanner<Integer,Void> {
  *      {@literal @}Override
  *      public Integer visitErroneous(ErroneousTree node, Void p) {
  *          return 1;
diff --git a/src/share/classes/com/sun/source/util/JavacTask.java b/src/share/classes/com/sun/source/util/JavacTask.java
index e760f5c3..e65e8d6c 100644
--- a/src/share/classes/com/sun/source/util/JavacTask.java
+++ b/src/share/classes/com/sun/source/util/JavacTask.java
@@ -56,7 +56,7 @@ public abstract class JavacTask implements CompilationTask {
      * If the compiler is being invoked using a
      * {@link javax.tools.JavaCompiler.CompilationTask CompilationTask},
      * then that task will be returned.
-     * @param processingEnvironment
+     * @param processingEnvironment the processing environment
      * @return the {@code JavacTask} for a {@code ProcessingEnvironment}
      * @since 1.8
      */
diff --git a/src/share/classes/com/sun/source/util/Plugin.java b/src/share/classes/com/sun/source/util/Plugin.java
index 72611553..06f7418f 100644
--- a/src/share/classes/com/sun/source/util/Plugin.java
+++ b/src/share/classes/com/sun/source/util/Plugin.java
@@ -38,7 +38,7 @@ import javax.tools.StandardLocation;
  *
  * 

Plug-ins are located via a {@link ServiceLoader}, * using the same class path as annotation processors (i.e. - * {@link StandardLocation#PROCESSOR_PATH PROCESSOR_PATH} or + * {@link StandardLocation#ANNOTATION_PROCESSOR_PATH ANNOTATION_PROCESSOR_PATH} or * {@code -processorpath}). * *

It is expected that a typical plug-in will simply register a diff --git a/src/share/classes/javax/lang/model/AnnotatedConstruct.java b/src/share/classes/javax/lang/model/AnnotatedConstruct.java index 7e2d6668..a7d1a84c 100644 --- a/src/share/classes/javax/lang/model/AnnotatedConstruct.java +++ b/src/share/classes/javax/lang/model/AnnotatedConstruct.java @@ -25,16 +25,17 @@ package javax.lang.model; -import java.lang.annotation.Annotation; +import java.lang.annotation.*; import java.util.List; import javax.lang.model.element.*; +import javax.lang.model.type.*; /** * Represent a construct that can have annotations. * - * When annotations are on an {@linkplain element.Element element}, - * the are on a declaration. When annotations are on a {@linkplain - * type.TypeMirror type}, they are on a use of a type. + * When annotations are on an {@linkplain Element element}, + * they are on a declaration. When annotations are on a {@linkplain + * TypeMirror type}, they are on a use of a type. * * @since 1.8 */ diff --git a/src/share/classes/javax/lang/model/type/ExecutableType.java b/src/share/classes/javax/lang/model/type/ExecutableType.java index 0531e223..3e8e53cb 100644 --- a/src/share/classes/javax/lang/model/type/ExecutableType.java +++ b/src/share/classes/javax/lang/model/type/ExecutableType.java @@ -85,7 +85,7 @@ public interface ExecutableType extends TypeMirror { * * An executable which is an instance method, or a constructor of an * inner class, has a receiver type derived from the {@linkplain - * #getEnclosingElement declaring type}. + * ExecutableElement#getEnclosingElement declaring type}. * * An executable which is a static method, or a constructor of a * non-inner class, or an initializer (static or instance), has no -- GitLab