The following document contains the results of PMD's CPD 4.3.
File | Line |
---|---|
org/apache/maven/wagon/shared/http4/AbstractHttpClientWagon.java | 545 |
org/apache/maven/wagon/shared/http4/AbstractHttpClientWagon.java | 757 |
if ( authenticationInfo != null ) { String username = authenticationInfo.getUserName(); String password = authenticationInfo.getPassword(); // preemptive for put if ( StringUtils.isNotEmpty( username ) && StringUtils.isNotEmpty( password ) ) { AuthCache authCache = new BasicAuthCache(); BasicScheme basicAuth = new BasicScheme(); HttpHost targetHost = new HttpHost( repository.getHost(), repository.getPort(), repository.getProtocol() ); authCache.put( targetHost, basicAuth ); localContext = new BasicHttpContext(); localContext.setAttribute( ClientContext.AUTH_CACHE, authCache ); } } |