Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.5
-
None
Description
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
public void execute(){ ... Set<Artifact> requestDependencies; if ( mojoDependencies == null ) { requestDependencies = dependencies; } else if ( mojoDependencies == null ) { requestDependencies = null; } ... }
Attachments
Issue Links
- is related to
-
MPLUGIN-305 MojoAnnotationsScanner should have better control over dependency scanning
- Closed