aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorEric Barboni <skygo@apache.org>2014-04-11 23:16:01 +0200
committerEric Barboni <skygo@apache.org>2014-04-11 23:16:01 +0200
commit4444ed0e1dd2a21682faca057ccdbb4e819bc16f (patch)
tree1cae41e2399e99182789755af4cac4cf10d24b06 /archiva-modules
parentf23b74ade7d13e4442c7fa903fd9a6be003dae23 (diff)
downloadarchiva-4444ed0e1dd2a21682faca057ccdbb4e819bc16f.tar.gz
archiva-4444ed0e1dd2a21682faca057ccdbb4e819bc16f.zip
simplify varargs calls
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java2
-rw-r--r--[-rwxr-xr-x]archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/DefaultWagonFactory.java5
2 files changed, 4 insertions, 3 deletions
diff --git a/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java b/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java
index d28b4495d..257b21689 100644
--- a/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java
+++ b/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java
@@ -122,7 +122,7 @@ public class PlexusSisuBridge
Method method = classLoader.getClass().getMethod( "getURLs", new Class[]{ } );
if ( method != null )
{
- return (URL[]) method.invoke( classLoader, null );
+ return (URL[]) method.invoke( classLoader );
}
}
catch ( Exception e )
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();