The following document contains the results of PMD's CPD 4.1.
File | Line |
---|---|
org/apache/maven/archetype/ui/DefaultArchetypeSelector.java | 85 |
org/apache/maven/archetype/ui/DefaultArchetypeSelector.java | 120 |
if ( !definition.isDefined () && definition.isPartiallyDefined () ) { Iterator ca = new ArrayIterator ( StringUtils.split ( catalogs, "," ) ); boolean found = false; while ( !found && ca.hasNext () ) { String catalogKey = (String) ca.next (); List catalog = (List) archetypes.get ( catalogKey ); Archetype example = new Archetype (); example.setGroupId ( request.getArchetypeGroupId () ); example.setArtifactId ( request.getArchetypeArtifactId () ); if ( catalog.contains ( example ) ) { found = true; Archetype foundArchetype = (Archetype) catalog.get ( catalog.indexOf ( example ) ); definition.setGroupId ( foundArchetype.getGroupId () ); |