aboutsummaryrefslogtreecommitdiff
path: root/jacoco-maven-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <138671+Godin@users.noreply.github.com>2019-01-18 18:25:51 +0100
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2019-01-18 18:25:51 +0100
commit13f29eb797d32338fb073bef8cc37b4e1dbde9f1 (patch)
tree41f2d8569c42fdf2ff862a93f41590565371df07 /jacoco-maven-plugin
parent0152b7a08014c1dbc72404ce4bbf3194cbc5a0ac (diff)
downloadjacoco-13f29eb797d32338fb073bef8cc37b4e1dbde9f1.tar.gz
Preserve empty class and sourcefile nodes in XML report (#817)
Diffstat (limited to 'jacoco-maven-plugin')
-rw-r--r--jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java b/jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java
index b66d6886..b582d8d9 100644
--- a/jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java
+++ b/jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java
@@ -222,9 +222,9 @@ final class ReportSupport {
c.getName()));
}
}
- if (bundle.getClassCounter().getTotalCount() > 0
- && bundle.getLineCounter().getTotalCount() == 0) {
- log.warn("To enable source code annotation class files have to be compiled with debug information.");
+ if (!bundle.isEmpty() && bundle.getLineCounter().getTotalCount() == 0) {
+ log.warn(
+ "To enable source code annotation class files have to be compiled with debug information.");
}
}