Checks the JavaDoc for class should be superseded with an empty line.
(final List<String> lines, final String relativePath)
| 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. |
no test coverage detected