Author: imario
Date: Mon May 14 06:44:20 2007
New Revision: 537839

URL: http://svn.apache.org/viewvc?view=rev&rev=537839
Log:
VFS-139: avoid jdk 1.5 warnings - Thanks to Adam Heath for the patch!

Modified:
    
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/VFS.java
    
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
    
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs/test/AbstractProviderTestCase.java

Modified: 
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/VFS.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/VFS.java?view=diff&rev=537839&r1=537838&r2=537839
==============================================================================
--- 
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/VFS.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/VFS.java
 Mon May 14 06:44:20 2007
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -78,8 +78,8 @@
             try
             {
                 // Initialise
-                final Method initMethod = mgrClass.getMethod("init", null);
-                initMethod.invoke(mgr, null);
+                final Method initMethod = mgrClass.getMethod("init", (Class[]) 
null);
+                initMethod.invoke(mgr, (Object[]) null);
             }
             catch (final NoSuchMethodException e)
             {

Modified: 
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java?view=diff&rev=537839&r1=537838&r2=537839
==============================================================================
--- 
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/AbstractVfsTestCase.java
 Mon May 14 06:44:20 2007
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -175,8 +175,8 @@
     {
         try
         {
-            Method method = throwable.getClass().getMethod("getCause", null);
-            return (Throwable) method.invoke(throwable, null);
+            Method method = throwable.getClass().getMethod("getCause", 
(Class[]) null);
+            return (Throwable) method.invoke(throwable, (Object[]) null);
         }
         catch (Exception e)
         {

Modified: 
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs/test/AbstractProviderTestCase.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs/test/AbstractProviderTestCase.java?view=diff&rev=537839&r1=537838&r2=537839
==============================================================================
--- 
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs/test/AbstractProviderTestCase.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs/test/AbstractProviderTestCase.java
 Mon May 14 06:44:20 2007
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -95,7 +95,7 @@
 
     /**
      * creates a new uninitialized file system manager
-     * @throws Exception 
+     * @throws Exception
      */
     protected DefaultFileSystemManager createManager() throws Exception
     {
@@ -117,7 +117,7 @@
     {
         return providerConfig.getBaseTestFolder(fs);
     }
-    
+
     /**
      * Returns the base test folder.  This is the parent of both the read
      * test and write test folders.
@@ -126,9 +126,9 @@
     {
         return baseFolder;
     }
-    
+
     /**
-     * get the provider configuration 
+     * get the provider configuration
      */
     public ProviderTestConfig getProviderConfig()
        {
@@ -194,7 +194,7 @@
         {
             try
             {
-                method.invoke(this, null);
+                method.invoke(this, (Object[]) null);
             }
             catch (final InvocationTargetException e)
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to