Applied code formatting

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@386246 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Edwin L. Punzalan 2006-03-16 03:17:52 +00:00
parent 859145b3df
commit eab4cc7819
4 changed files with 9 additions and 9 deletions

View File

@ -43,11 +43,11 @@ import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
/**
* @author Edwin Punzalan
@ -200,8 +200,8 @@ public class DefaultProxyManager
{
if ( checkIfFailureCached( repository.pathOf( artifact ), repository ) )
{
getLogger().debug( "Skipping repository " + repository.getKey() +
" for a cached path failure." );
getLogger().debug(
"Skipping repository " + repository.getKey() + " for a cached path failure." );
}
else
{
@ -360,8 +360,7 @@ public class DefaultProxyManager
if ( checkIfFailureCached( path, repository ) )
{
getLogger().debug( "Skipping repository " + repository.getKey() +
" for a cached path failure." );
getLogger().debug( "Skipping repository " + repository.getKey() + " for a cached path failure." );
}
else
{

View File

@ -96,7 +96,8 @@ public class MavenProxyPropertyLoader
String url = getMandatoryProperty( props, "repo." + key + ".url" );
String proxyKey = repoProps.getProperty( "proxy" );
boolean cacheFailures = Boolean.valueOf( repoProps.getProperty( "cache.failures", "false" ) ).booleanValue();
boolean cacheFailures =
Boolean.valueOf( repoProps.getProperty( "cache.failures", "false" ) ).booleanValue();
boolean hardFail = Boolean.valueOf( repoProps.getProperty( "hardfail", "true" ) ).booleanValue();
long cachePeriod = Long.parseLong( repoProps.getProperty( "cache.period", "0" ) );

View File

@ -83,7 +83,8 @@ public class ProxyConfiguration
httpProxy.setPassword( password );
}
public void setHttpProxy( String host, int port, String username, String password, String ntlmHost, String ntlmDomain )
public void setHttpProxy( String host, int port, String username, String password, String ntlmHost,
String ntlmDomain )
{
setHttpProxy( host, port );
httpProxy.setUserName( username );

View File

@ -62,8 +62,7 @@ public class MavenProxyPropertyLoaderTest
{
case 1:
assertEquals( "Repository name not as expected", "local-repo", repo.getKey() );
assertEquals( "Repository url does not match its name", "file://target",
repo.getUrl() );
assertEquals( "Repository url does not match its name", "file://target", repo.getUrl() );
assertEquals( "Repository cache period check failed", 0, repo.getCachePeriod() );
assertFalse( "Repository failure caching check failed", repo.isCacheFailures() );
break;