songwanging created MPLUGIN-330:
-----------------------------------

             Summary: 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


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)

Reply via email to