The following document contains the results of PMD's CPD 5.3.2.
File | Line |
---|---|
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java | 231 |
org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java | 63 |
out.println( "[WARNING] " + event.getException().getMessage() + " for " + resource.getRepositoryUrl() + resource.getResourceName() ); } @Override public void transferSucceeded( TransferEvent event ) { TransferResource resource = event.getResource(); long contentLength = event.getTransferredBytes(); FileSizeFormat format = new FileSizeFormat( Locale.ENGLISH ); String result = ( event.getRequestType() == TransferEvent.RequestType.PUT ? "Uploaded" : "Downloaded" ); String len = format.format( contentLength ); String throughput = ""; long duration = System.currentTimeMillis() - resource.getTransferStartTime(); if ( duration > 0L ) { double bytesPerSecond = contentLength / ( duration / 1000.0 ); throughput = " at " + format.format( (long) bytesPerSecond ) + "/s"; } out.println( result + ": " + resource.getRepositoryUrl() + resource.getResourceName() + " (" + len |