diff options
author | Eric Barboni <skygo@apache.org> | 2014-04-11 23:16:01 +0200 |
---|---|---|
committer | Eric Barboni <skygo@apache.org> | 2014-04-11 23:16:01 +0200 |
commit | 4444ed0e1dd2a21682faca057ccdbb4e819bc16f (patch) | |
tree | 1cae41e2399e99182789755af4cac4cf10d24b06 /archiva-modules/archiva-base/archiva-proxy-common | |
parent | f23b74ade7d13e4442c7fa903fd9a6be003dae23 (diff) | |
download | archiva-4444ed0e1dd2a21682faca057ccdbb4e819bc16f.tar.gz archiva-4444ed0e1dd2a21682faca057ccdbb4e819bc16f.zip |
simplify varargs calls
Diffstat (limited to 'archiva-modules/archiva-base/archiva-proxy-common')
-rw-r--r--[-rwxr-xr-x] | archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/DefaultWagonFactory.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/DefaultWagonFactory.java b/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/DefaultWagonFactory.java index da58f1c40..417435029 100755..100644 --- a/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/DefaultWagonFactory.java +++ b/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/DefaultWagonFactory.java @@ -53,6 +53,7 @@ public class DefaultWagonFactory this.applicationContext = applicationContext; } + @Override public Wagon getWagon( WagonFactoryRequest wagonFactoryRequest ) throws WagonFactoryException { @@ -85,9 +86,9 @@ public class DefaultWagonFactory try { Class clazz = wagon.getClass(); - Method getHttpHeaders = clazz.getMethod( "getHttpHeaders", null ); + Method getHttpHeaders = clazz.getMethod( "getHttpHeaders" ); - Properties headers = (Properties) getHttpHeaders.invoke( wagon, null ); + Properties headers = (Properties) getHttpHeaders.invoke( wagon ); if ( headers == null ) { headers = new Properties(); |