MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / classJavaDoc

Method classJavaDoc

src/test/java/org/htmlunit/CodeStyleTest.java:228–236  ·  view source on GitHub ↗

Checks the JavaDoc for class should be superseded with an empty line.

(final List<String> lines, final String relativePath)

Source from the content-addressed store, hash-verified

226 * Checks the JavaDoc for class should be superseded with an empty line.
227 */
228 private void classJavaDoc(final List<String> lines, final String relativePath) {
229 for (int index = 1; index < lines.size(); index++) {
230 final String previousLine = lines.get(index - 1);
231 final String currentLine = lines.get(index);
232 if (currentLine.startsWith("/**") && !previousLine.isEmpty()) {
233 addFailure(relativePath, index, "No empty line the beginning of JavaDoc");
234 }
235 }
236 }
237
238 /**
239 * Checks the method first line, it should not be empty.

Callers 1

processMethod · 0.95

Calls 5

addFailureMethod · 0.95
isEmptyMethod · 0.65
sizeMethod · 0.45
getMethod · 0.45
startsWithMethod · 0.45

Tested by

no test coverage detected