elharo opened a new issue, #305:
URL: https://github.com/apache/maven-source-plugin/issues/305

   `AbstractSourceJarMojo.java:330-336` contains a private method 
`getPreviouslyAttached()` that is never called anywhere in the codebase:
   
   ```java
   private Artifact getPreviouslyAttached(Artifact artifact, Project 
checkProject, String classifier) {
       return artifact.getExtension().equals(getExtension())
                       && 
artifact.getGroupId().equals(checkProject.getGroupId())
                       && 
artifact.getArtifactId().equals(checkProject.getArtifactId())
                       && 
artifact.getVersion().toString().equals(checkProject.getVersion())
                       && Objects.equals(artifact.getClassifier(), classifier)
               ? artifact
               : null;
   }
   ```
   
   This is dead code and should be removed to avoid confusion.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to