Fork me on GitHub

CPD Results

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

Duplications

File Line
com/soebes/maven/extensions/artifact/DeployTimer.java 52
com/soebes/maven/extensions/artifact/InstallTimer.java 52
LOGGER.info( "Deployment summary:" );
        long totalInstallationTime = 0;
        long totalInstallationSize = 0;
        for ( Entry<String, TimePlusSize> item : this.getTimerEvents().entrySet() )
        {
            totalInstallationTime += item.getValue().getElapsedTime();
            totalInstallationSize += item.getValue().getSize();
            String formattedTime = String.format("%8d", item.getValue().getElapsedTime());
            LOGGER.info( "{} ms : {}", formattedTime, item.getKey() );
        }
        double mibPerSeconds = calculateMegabytesPerSeconds( totalInstallationTime, totalInstallationSize );

        String totalInstallationTimeFormatted = String.format("%8d", totalInstallationTime);

        LOGGER.info( "" );
        LOGGER.info( "{} ms  {} bytes. {} MiB / s", totalInstallationTimeFormatted,
                     integerFormat.format( totalInstallationSize ),
                     numberFormat.format( mibPerSeconds ) );
        LOGGER.info( "------------------------------------------------------------------------" );
    }

}