以下文档包含 PMD 的 CPD 4.3 的结果。
| 文件 | 线 |
|---|---|
| org\apache\maven\plugin\idea\IdeaModuleMojo.java | 635 |
| org\apache\maven\plugin\idea\IdeaModuleMojo.java | 793 |
deployDescElement.addAttribute( "optional", ejbVersion.startsWith( "3" ) + "" );
removeOldElements( component, "containerElement" );
List artifacts = executedProject.getTestArtifacts();
for ( Iterator i = artifacts.iterator(); i.hasNext(); )
{
Artifact artifact = (Artifact) i.next();
Element containerElement = createElement( component, "containerElement" );
if ( linkModules && isReactorProject( artifact.getGroupId(), artifact.getArtifactId() ) )
{
containerElement.addAttribute( "type", "module" );
containerElement.addAttribute( "name", artifact.getArtifactId() );
Element methodAttribute = createElement( containerElement, "attribute" );
methodAttribute.addAttribute( "name", "method" );
methodAttribute.addAttribute( "value", "6" ); | |