Fork me on GitHub

CPD Results

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

Duplications

File Project Line
org/codehaus/mojo/animal_sniffer/enforcer/MavenLogger.java Animal Sniffer Maven Enforcer Rule 37
org/codehaus/mojo/animal_sniffer/maven/MavenLogger.java Animal Sniffer Maven Plugin 37
public final class MavenLogger
    implements Logger
{
    private final Log delegate;

    public MavenLogger( Log delegate )
    {
        this.delegate = delegate;
    }

    public void info( String message )
    {
        delegate.info( message );
    }

    public void info( String message, Throwable t )
    {
        delegate.info( message, t );
    }

    public void debug( String message )
    {
        delegate.debug( message );
    }

    public void debug( String message, Throwable t )
    {
        delegate.debug( message, t );
    }

    public void warn( String message )
    {
        delegate.warn( message );
    }

    public void warn( String message, Throwable t )
    {
        delegate.warn( message, t );
    }

    public void error( String message )
    {
        delegate.error( message );
    }

    public void error( String message, Throwable t )
    {
        delegate.error( message, t );
    }
}
File Project Line
org/codehaus/mojo/animal_sniffer/enforcer/CheckSignatureRule.java Animal Sniffer Maven Enforcer Rule 253
org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java Animal Sniffer Maven Plugin 334
if ( StringUtils.isEmpty( d.getVersion() ) )
            {
                continue;
            }
            if ( StringUtils.equals( d.getGroupId(), signature.getGroupId() ) && StringUtils.equals( d.getArtifactId(),
                                                                                                     signature.getArtifactId() ) )
            {
                if ( "signature".equals( d.getType() ) )
                {
                    // this is a perfect match
                    match = d;
                    break;
                }
                if ( "pom".equals( d.getType() ) )
                {
                    if ( match == null || "jar".equals( match.getType() ) )
                    {
                        match = d;
                    }
                }
                if ( "jar".equals( d.getType() ) )
                {
                    if ( match == null )
                    {
                        match = d;
                    }
                }
            }
        }
        return match;
    }

    /**
     * List of packages defined in the application.
     *
     * @param outputDirectory
     * @param logger
     */
    private Set<String> buildPackageList( File outputDirectory, File testOutputDirectory, MavenProject project, Logger logger )