The following document contains the results of PMD's CPD 4.2.2.
File | Line |
---|---|
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1645 |
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1906 |
updateBuildBase( value.getBuild(), "build", innerCount, root ); findAndReplaceSimpleLists( innerCount, root, value.getModules(), "modules", "module" ); iterateRepository( innerCount, root, value.getRepositories(), "repositories", "repository" ); iterateRepository( innerCount, root, value.getPluginRepositories(), "pluginRepositories", "pluginRepository" ); iterateDependency( innerCount, root, value.getDependencies(), "dependencies", "dependency" ); findAndReplaceXpp3DOM( innerCount, root, "reports", (Xpp3Dom) value.getReports() ); updateReporting( value.getReporting(), "reporting", innerCount, root ); updateDependencyManagement( value.getDependencyManagement(), "dependencyManagement", innerCount, root ); updateDistributionManagement( value.getDistributionManagement(), "distributionManagement", innerCount, root ); findAndReplaceProperties( innerCount, root, "properties", value.getProperties() ); } // -- void updateProfile(Profile, String, Counter, Element) /** * Method updateRelocation * * @param value * @param element * @param counter * @param xmlTag */ protected void updateRelocation( Relocation value, String xmlTag, Counter counter, Element element ) |
File | Line |
---|---|
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1645 |
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1671 |
Counter innerCount = new Counter( counter.getDepth() + 1 ); findAndReplaceSimpleLists( innerCount, root, value.getModules(), "modules", "module" ); iterateRepository( innerCount, root, value.getRepositories(), "repositories", "repository" ); iterateRepository( innerCount, root, value.getPluginRepositories(), "pluginRepositories", "pluginRepository" ); iterateDependency( innerCount, root, value.getDependencies(), "dependencies", "dependency" ); findAndReplaceXpp3DOM( innerCount, root, "reports", (Xpp3Dom) value.getReports() ); updateReporting( value.getReporting(), "reporting", innerCount, root ); updateDependencyManagement( value.getDependencyManagement(), "dependencyManagement", innerCount, root ); updateDistributionManagement( value.getDistributionManagement(), "distributionManagement", innerCount, root ); findAndReplaceProperties( innerCount, root, "properties", value.getProperties() ); } |
File | Line |
---|---|
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1241 |
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1267 |
Counter innerCount = new Counter( counter.getDepth() + 1 ); findAndReplaceSimpleElement( innerCount, root, "defaultGoal", value.getDefaultGoal(), null ); iterateResource( innerCount, root, value.getResources(), "resources", "resource" ); iterateResource( innerCount, root, value.getTestResources(), "testResources", "testResource" ); findAndReplaceSimpleElement( innerCount, root, "directory", value.getDirectory(), null ); findAndReplaceSimpleElement( innerCount, root, "finalName", value.getFinalName(), null ); findAndReplaceSimpleLists( innerCount, root, value.getFilters(), "filters", "filter" ); updatePluginManagement( value.getPluginManagement(), "pluginManagement", innerCount, root ); iteratePlugin( innerCount, root, value.getPlugins(), "plugins", "plugin" ); } } // -- void updateBuildBase(BuildBase, String, Counter, Element) /** * Method updateCiManagement * * @param value * @param element * @param counter * @param xmlTag */ protected void updateCiManagement( CiManagement value, String xmlTag, Counter counter, Element element ) |
File | Line |
---|---|
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1332 |
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 1424 |
findAndReplaceSimpleElement( innerCount, root, "id", value.getId(), null ); findAndReplaceSimpleElement( innerCount, root, "name", value.getName(), null ); findAndReplaceSimpleElement( innerCount, root, "email", value.getEmail(), null ); findAndReplaceSimpleElement( innerCount, root, "url", value.getUrl(), null ); findAndReplaceSimpleElement( innerCount, root, "organization", value.getOrganization(), null ); findAndReplaceSimpleElement( innerCount, root, "organizationUrl", value.getOrganizationUrl(), null ); findAndReplaceSimpleLists( innerCount, root, value.getRoles(), "roles", "role" ); findAndReplaceSimpleElement( innerCount, root, "timezone", value.getTimezone(), null ); findAndReplaceProperties( innerCount, root, "properties", value.getProperties() ); } // -- void updateDeveloper(Developer, String, Counter, Element) /** * Method updateDistributionManagement * * @param value * @param element * @param counter * @param xmlTag */ protected void updateDistributionManagement( DistributionManagement value, String xmlTag, Counter counter, |
File | Line |
---|---|
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 321 |
org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java | 921 |
protected void iterateResource( Counter counter, Element parent, java.util.Collection list, java.lang.String parentTag, java.lang.String childTag ) { boolean shouldExist = list != null && list.size() > 0; Element element = updateElement( counter, parent, parentTag, shouldExist ); if ( shouldExist ) { Iterator it = list.iterator(); Iterator elIt = element.getChildren( childTag, element.getNamespace() ).iterator(); if ( !elIt.hasNext() ) elIt = null; Counter innerCount = new Counter( counter.getDepth() + 1 ); while ( it.hasNext() ) { |