diff --git a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java index a533b79ef..bb9c4d76f 100644 --- a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java +++ b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java @@ -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 { diff --git a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoader.java b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoader.java index 5de33d295..71c76db85 100644 --- a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoader.java +++ b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoader.java @@ -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" ) ); diff --git a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/ProxyConfiguration.java b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/ProxyConfiguration.java index 3ec4e1c2c..c7aae0c8b 100644 --- a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/ProxyConfiguration.java +++ b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/ProxyConfiguration.java @@ -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 ); diff --git a/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoaderTest.java b/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoaderTest.java index b64ba8eea..404aed04a 100644 --- a/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoaderTest.java +++ b/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/MavenProxyPropertyLoaderTest.java @@ -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;