CPD Results

The following document contains the results of PMD's CPD 4.3.

Duplications

FileLine
org\apache\maven\plugin\idea\IdeaModuleMojo.java635
org\apache\maven\plugin\idea\IdeaModuleMojo.java793
        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" );