Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[JENKINS-32298] Fixed false positives after upgrade to JavaDoc 8.
  • Loading branch information
uhafner committed Jun 4, 2016
1 parent a9c512c commit 81c697a5d0479843c75fed907f94c9bd9bb6c696
Showing with 18 additions and 1 deletion.
  1. +6 −1 src/main/java/hudson/plugins/warnings/parser/JavaDocParser.java
  2. +12 −0 src/test/java/hudson/plugins/warnings/parser/JavaDocParserTest.java
@@ -24,7 +24,12 @@ public JavaDocParser() {
super(Messages._Warnings_JavaDoc_ParserName(),
Messages._Warnings_JavaDoc_LinkName(),
Messages._Warnings_JavaDoc_TrendName(),
JAVA_DOC_WARNING_PATTERN);
JAVA_DOC_WARNING_PATTERN, true);
}

@Override
protected boolean isLineInteresting(final String line) {
return line.contains("javadoc") || line.contains("@");
}

@Override
@@ -18,6 +18,18 @@
public class JavaDocParserTest extends ParserTester {
private static final String TYPE = new JavaDocParser().getGroup();

/**
* Parses a warning log with JavaDoc 1.8 warnings.
*
* @throws IOException
* if the file could not be read
*/
@Test
public void falseJavaDocPositives() throws IOException {
Collection<FileAnnotation> warnings = new JavaDocParser().parse(openFile("all.txt"));
assertEquals(WRONG_NUMBER_OF_WARNINGS_DETECTED, 8, warnings.size());
}

/**
* Parses a warning log with JavaDoc 1.8 warnings.
*

0 comments on commit 81c697a

Please sign in to comment.