Skip to content

Commit

Permalink
[JENKINS-42310] JobDescription Lint defect support Maven and Matrix p…
Browse files Browse the repository at this point in the history
…rojects
  • Loading branch information
v1v committed Feb 24, 2017
1 parent bb790ad commit 13f711c
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1,7 +1,7 @@
package org.jenkins.ci.plugins.jenkinslint.check;

import hudson.model.AbstractItem;
import hudson.model.Item;
import hudson.model.Project;
import org.jenkins.ci.plugins.jenkinslint.model.AbstractCheck;

/**
Expand All @@ -16,9 +16,9 @@ public JobDescriptionChecker() {
}

public boolean executeCheck(Item item) {
if (item instanceof hudson.model.Project) {
return (((Project) item).getDescription() == null
|| ((Project) item).getDescription().length() == 0);
if (item instanceof AbstractItem) {
return (((AbstractItem) item).getDescription() == null
|| ((AbstractItem) item).getDescription().length() == 0);
}
return false;
}
Expand Down

0 comments on commit 13f711c

Please sign in to comment.