Skip to content
Permalink
Browse files

[JENKINS-42310] Javadoc Lint defect support Maven and Matrix projects

  • Loading branch information...
v1v committed Feb 25, 2017
1 parent dfad147 commit 55b5e4c70d0460a50531f96680d678706b574833
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JavadocChecker.java
@@ -1,8 +1,8 @@
package org.jenkins.ci.plugins.jenkinslint.check;

import hudson.model.AbstractProject;
import hudson.model.Descriptor;
import hudson.model.Item;
import hudson.model.Project;
import hudson.tasks.JavadocArchiver;
import hudson.tasks.Publisher;
import hudson.util.DescribableList;
@@ -20,8 +20,8 @@ public JavadocChecker() {
}

public boolean executeCheck(Item item) {
if (item instanceof Project) {
DescribableList<Publisher, Descriptor<Publisher>> publishersList = ((Project) item).getPublishersList();
if (item instanceof AbstractProject) {
DescribableList<Publisher, Descriptor<Publisher>> publishersList = ((AbstractProject) item).getPublishersList();
for (Publisher publisher : publishersList) {
if (publisher instanceof hudson.tasks.JavadocArchiver) {
return ( ((JavadocArchiver) publisher).getJavadocDir() == null ||

0 comments on commit 55b5e4c

Please sign in to comment.
You can’t perform that action at this time.