CPD Results

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

Duplications

FileLine
org/apache/maven/shared/utils/introspection/ReflectionValueExtractor.java146
org/apache/maven/shared/utils/introspection/ReflectionValueExtractor.java209
            Matcher matcher = INDEXED_PROPS.matcher( token );
            if ( matcher.find() )
            {
                String methodBase = StringUtils.capitalizeFirstLetter( matcher.group( 1 ) );
                String methodName = "get" + methodBase;
                try
                {
                    method = classMap.findMethod( methodName, CLASS_ARGS );
                }
                catch ( AmbiguousException e )
                {
                    throw new IntrospectionException( e );
                }
                
                try
                {
                    value = method.invoke( value, OBJECT_ARGS );
                }
                catch ( IllegalArgumentException e )
                {
                    throw new IntrospectionException( e );
                }
                catch ( IllegalAccessException e )
                {
                    throw new IntrospectionException( e );
                }
                catch ( InvocationTargetException e )
                {
                    throw new IntrospectionException( e );
                }                
                
                classMap = getClassMap( value.getClass() );

                if ( classMap.getCachedClass().isArray() )