diff --git a/src/jdk.compiler/share/classes/com/sun/source/util/DocTreeScanner.java b/src/jdk.compiler/share/classes/com/sun/source/util/DocTreeScanner.java
index 7a66a7891e9..54ce3b12ffa 100644
--- a/src/jdk.compiler/share/classes/com/sun/source/util/DocTreeScanner.java
+++ b/src/jdk.compiler/share/classes/com/sun/source/util/DocTreeScanner.java
@@ -35,6 +35,21 @@ import com.sun.source.doctree.*;
* Inside your method, call super.visitXYZ to visit descendant
* nodes.
*
+ *
Here is an example to count the number of erroneous nodes in a tree:
+ *
+ * class CountErrors extends DocTreeScanner<Integer,Void> {
+ * {@literal @}Override
+ * public Integer visitErroneous(ErroneousTree node, Void p) {
+ * return 1;
+ * }
+ * {@literal @}Override
+ * public Integer reduce(Integer r1, Integer r2) {
+ * return (r1 == null ? 0 : r1) + (r2 == null ? 0 : r2);
+ * }
+ * }
+ *
+ *
+ * @implSpec
* The default implementation of the visitXYZ methods will determine
* a result as follows:
*
@@ -51,20 +66,6 @@ import com.sun.source.doctree.*;
* the last child scanned.
*
*
- * Here is an example to count the number of erroneous nodes in a tree:
- *
- * class CountErrors extends DocTreeScanner<Integer,Void> {
- * {@literal @}Override
- * public Integer visitErroneous(ErroneousTree node, Void p) {
- * return 1;
- * }
- * {@literal @}Override
- * public Integer reduce(Integer r1, Integer r2) {
- * return (r1 == null ? 0 : r1) + (r2 == null ? 0 : r2);
- * }
- * }
- *
- *
* @since 1.8
*/
public class DocTreeScanner implements DocTreeVisitor {
@@ -128,7 +129,9 @@ public class DocTreeScanner implements DocTreeVisitor {
****************************************************************************/
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -140,7 +143,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -152,7 +157,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -164,7 +171,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -176,7 +185,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -191,7 +202,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -203,7 +216,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -215,7 +230,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -227,7 +244,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -239,7 +258,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -251,7 +272,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -263,7 +286,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -275,7 +300,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -289,7 +316,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -301,7 +330,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -315,7 +346,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -327,7 +360,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -341,7 +376,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -355,7 +392,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -367,7 +406,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -379,7 +420,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -391,7 +434,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -403,7 +448,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -415,7 +462,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -430,7 +479,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -442,7 +493,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -454,7 +507,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -467,7 +522,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -480,7 +537,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -492,7 +551,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -506,7 +567,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -518,7 +581,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -530,7 +595,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -544,7 +611,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -556,7 +625,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation scans the children in left to right order.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -568,7 +639,9 @@ public class DocTreeScanner implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation returns {@code null}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation returns {@code null}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
diff --git a/src/jdk.compiler/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java b/src/jdk.compiler/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java
index 4fa7fd06a4e..2461ac4cf18 100644
--- a/src/jdk.compiler/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java
+++ b/src/jdk.compiler/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -96,7 +96,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -108,7 +110,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -120,7 +124,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -132,7 +138,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -144,7 +152,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -156,7 +166,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -181,7 +193,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
public R visitDocType(DocTypeTree node, P p) { return defaultAction(node, p); }
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -191,7 +205,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
public R visitEndElement(EndElementTree node, P p) { return defaultAction(node, p);}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -203,7 +219,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -215,7 +233,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -229,7 +249,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -241,7 +263,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -255,7 +279,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -267,7 +293,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -279,7 +307,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -291,7 +321,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -303,7 +335,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -317,7 +351,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -329,7 +365,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -341,7 +379,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -353,7 +393,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -365,7 +407,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -377,7 +421,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -389,7 +435,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -401,7 +449,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -413,7 +463,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -426,7 +478,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -439,7 +493,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -451,7 +507,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -463,7 +521,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -475,7 +535,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -487,7 +549,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -501,7 +565,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -513,7 +579,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -525,7 +593,9 @@ public class SimpleDocTreeVisitor implements DocTreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
diff --git a/src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java b/src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java
index 89a1fe2c9fc..01e0374f0b6 100644
--- a/src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java
+++ b/src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -97,7 +97,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -109,7 +111,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -121,7 +125,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -133,7 +139,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -145,7 +153,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -157,7 +167,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -169,7 +181,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -181,7 +195,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -193,7 +209,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -205,7 +223,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -217,7 +237,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -229,7 +251,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -241,7 +265,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -253,7 +279,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -265,7 +293,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -277,7 +307,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -289,7 +321,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -301,7 +335,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -313,7 +349,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -325,7 +363,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -337,7 +377,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -349,7 +391,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -361,7 +405,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -373,7 +419,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -385,7 +433,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -397,7 +447,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -409,7 +461,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -421,7 +475,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -433,7 +489,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -445,7 +503,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -457,7 +517,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -469,7 +531,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -481,7 +545,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -493,7 +559,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -505,7 +573,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -517,7 +587,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -529,7 +601,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -541,7 +615,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -553,7 +629,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -566,7 +644,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -580,7 +660,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -592,7 +674,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -604,7 +688,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -618,7 +704,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -632,7 +720,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -644,7 +734,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -656,7 +748,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -668,7 +762,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -680,7 +776,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -692,7 +790,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -704,7 +804,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -716,7 +818,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -728,7 +832,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -740,7 +846,9 @@ public class SimpleTreeVisitor implements TreeVisitor {
}
/**
- * {@inheritDoc} This implementation calls {@code defaultAction}.
+ * {@inheritDoc}
+ *
+ * @implSpec This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
@@ -752,7 +860,9 @@ public class SimpleTreeVisitor implements TreeVisitor