Fix dangling Javadoc comments. #1555
Fixes `DanglingJavadoc` inspection violations. Description: >Reports dangling Javadoc comments. Javadoc comment are dangling if they don't belong to any class, method or field. For example a Javadoc comment in between method declarations that have their own javadoc comments.
This commit is contained in:
parent
5311fb5484
commit
1650f48269
|
|
@ -55,7 +55,7 @@ public class InnerTypeLastCheck extends Check {
|
|||
|
||||
@Override
|
||||
public void visitToken(DetailAST ast) {
|
||||
/** First root class */
|
||||
// First root class
|
||||
if (rootClass) {
|
||||
rootClass = false;
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ public class InnerTypeLastCheck extends Check {
|
|||
|
||||
@Override
|
||||
public void leaveToken(DetailAST ast) {
|
||||
/** Is this a root class */
|
||||
// Is this a root class
|
||||
if (ast.getParent() == null) {
|
||||
rootClass = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ final class ImportControlLoader extends AbstractLoader {
|
|||
/** Used to hold the {@link PkgControl} objects. */
|
||||
private final Deque<PkgControl> stack = new ArrayDeque<>();
|
||||
|
||||
/** Initialise the map */
|
||||
static {
|
||||
DTD_RESOURCE_BY_ID.put(DTD_PUBLIC_ID_1_0, DTD_RESOURCE_NAME_1_0);
|
||||
DTD_RESOURCE_BY_ID.put(DTD_PUBLIC_ID_1_1, DTD_RESOURCE_NAME_1_1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue