commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1033579 - in /commons/proper/vfs/trunk: core/src/main/java/org/apache/commons/vfs/provider/webdav/ExceptionConverter.java sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeAttributesMap.java
Date Wed, 10 Nov 2010 16:39:27 GMT
Author: sebb
Date: Wed Nov 10 16:39:27 2010
New Revision: 1033579

URL: http://svn.apache.org/viewvc?rev=1033579&view=rev
Log:
Fix varargs warnings

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/webdav/ExceptionConverter.java
    commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeAttributesMap.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/webdav/ExceptionConverter.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/webdav/ExceptionConverter.java?rev=1033579&r1=1033578&r2=1033579&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/webdav/ExceptionConverter.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/webdav/ExceptionConverter.java
Wed Nov 10 16:39:27 2010
@@ -65,7 +65,7 @@ public final class ExceptionConverter
                             Constructor<?> excConstr = cl.getConstructor(new Class[]{String.class});
                             if (excConstr != null)
                             {
-                                Object o = excConstr.newInstance(new String[]{msg});
+                                Object o = excConstr.newInstance(new Object[]{msg});
                                 if (o instanceof FileSystemException)
                                 {
                                     return (FileSystemException) o;

Modified: commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeAttributesMap.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeAttributesMap.java?rev=1033579&r1=1033578&r2=1033579&view=diff
==============================================================================
--- commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeAttributesMap.java
(original)
+++ commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeAttributesMap.java
Wed Nov 10 16:39:27 2010
@@ -147,7 +147,7 @@ public class MimeAttributesMap implement
 
             try
             {
-                Object value = method.invoke(part, null);
+                Object value = method.invoke(part, (Object[]) null);
                 ret.put(OBJECT_PREFIX + name, value);
             }
             catch (IllegalAccessException e)



Mime
View raw message