Skip to content
Closed
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
5 changes: 5 additions & 0 deletions its/ruling/src/test/resources/mall/java-S2160.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"com.macro.mall:mall:mall-admin/src/main/java/com/macro/mall/dto/PmsProductResult.java": [
11
]
}
1 change: 1 addition & 0 deletions its/ruling/src/test/resources/mall/java-S6212.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
65,
69,
76,
91,
107
],
"com.macro.mall:mall:mall-admin/src/main/java/com/macro/mall/controller/OssController.java": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,49 @@ 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() {
}

/* (non-Javadoc) returns </code> */
public String eclipseMarkerWithHtml() {
return name;
}

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