CPD Results
The following document contains the results of PMD's CPD 7.7.0.
Duplications
| File | Line |
|---|---|
| net\sf\michaelo\activedirectory\ActiveDirectoryDcLocator.java | 375 |
| net\sf\michaelo\activedirectory\ActiveDirectoryDcLocator.java | 617 |
selectServer(hostAddresses, flags, localHostName, domainName, null, readTimeout);
if (pingResponse == null)
throw newNamingException(
domainName,
siteName,
new ServiceUnavailableException(String.format(
"Failed to probe %d server%s",
hostAddresses.length, hostAddresses.length == 1 ? "" : "s")));
DomainControllerInfo dcInfo = toDomainControllerInfo(pingResponse, flags, siteName);
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(() -> String.format("Located %s server: %s", serviceName, dcInfo));
else
LOGGER.fine(
() -> String.format("Located %s server '%s'", serviceName, dcInfo.getDomainControllerName()));
return dcInfo;
} else {
if (StringUtils.isEmpty(domainName)) {
if (!localHostName.contains(PERIOD))
throw new NameNotFoundException(String.format(
"Failed to extract domain name from unqualified local host name '%s'", localHostName));
domainName = localHostName.substring(localHostName.indexOf(PERIOD) + 1); | |
Apache Maven