Skip to content

Commit 9338f9d

Browse files
committed
Use 0 sized arrays when using toArray
1 parent da6411b commit 9338f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/codehaus/plexus/components/io/resources/proxy/ProxyFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static PlexusIoResource createProxy( @Nonnull PlexusIoResource target, Ob
4040
interfaces.add( ResourceAttributeSupplier.class );
4141

4242
return (PlexusIoResource) Proxy.newProxyInstance( PlexusIoResource.class.getClassLoader(),
43-
interfaces.toArray( new Class[interfaces.size()] ),
43+
interfaces.toArray( new Class[0] ),
4444
new ResourceInvocationHandler( target, alternateSupplier ) );
4545
}
4646
}

0 commit comments

Comments
 (0)