Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,44 @@ public String toString() {
return name;
}

/*
* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
return 0;
}

/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object other) {
return this == other;
}

/* (non-Javadoc)
* @param ignored this Eclipse stub still contains a Javadoc tag
*/
public void eclipseMarkerWithoutSee(int ignored) {
}

// Noncompliant@+1
/* @see java.lang.Object#clone() */
public Object seeWithoutEclipseMarker() {
return this;
}

// Noncompliant@+1
/* (non-javadoc) @see java.lang.Object#wait() */
public void lowercaseMarkerLookalike() {
}

// (non-Javadoc) {@link Object} */
public void eclipseMarkerLineComment() {
}

record Point(int x, int y) {
// Noncompliant@+1
/* @param x the x coordinate */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ private static Tree previousSibling(Tree tree) {

private static boolean isAlmostJavadoc(SyntaxTrivia trivia) {
String text = trivia.comment().stripTrailing();
if (text.contains("(non-Javadoc)")) {
return false;
}
if (trivia.isComment(CommentKind.BLOCK)) {
return hasTag(text);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ <h3>Exceptions</h3>
<code>&lt;/a&gt;</code>, <code>&lt;/strong&gt;</code>, <code>&lt;/i&gt;</code>, <code>&lt;/pre&gt;</code>, or <code>&lt;/code&gt;</code>.</li>
<li>The comment does not immediately precede a documentable declaration.</li>
<li>The declaration already has a documentation comment.</li>
<li>The comment contains the Eclipse <code>(non-Javadoc)</code> marker.</li>
</ul>
<h3>Code examples</h3>
<h4>Noncompliant code example</h4>
Expand Down
Loading