[ https://issues.apache.org/jira/browse/MPLUGIN-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16314283#comment-16314283 ]
Hudson commented on MPLUGIN-330: -------------------------------- Build failed in Jenkins: Maven TLP » maven-plugin-tools » master #9 See https://builds.apache.org/job/maven-box/job/maven-plugin-tools/job/master/9/ > If and else-if branches has the same condition > ---------------------------------------------- > > Key: MPLUGIN-330 > URL: https://issues.apache.org/jira/browse/MPLUGIN-330 > Project: Maven Plugin Tools > Issue Type: Bug > Components: Plugin Plugin > Affects Versions: 3.5 > Reporter: songwanging > Priority: Minor > Fix For: 3.5.1 > > > Our tool DeepTect has detected a piece of buggy code snippet, in which the if > and else branches has the same condition. > Path: > maven-plugin-tools/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java > {code:java} > public void execute(){ > ... > Set<Artifact> requestDependencies; > if ( mojoDependencies == null ) > { > requestDependencies = dependencies; > } > else if ( mojoDependencies == null ) > { > requestDependencies = null; > } > ... > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)