Author: sebb
Date: Mon Nov 8 02:00:19 2010
New Revision: 1032443
URL: http://svn.apache.org/viewvc?rev=1032443&view=rev
Log:
Generics
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/VFSClassLoader.java
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/CryptorFactory.java
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/FileObjectUtils.java
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/VFSClassLoader.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/VFSClassLoader.java?rev=1032443&r1=1032442&r2=1032443&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/VFSClassLoader.java
(original)
+++
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/VFSClassLoader.java
Mon Nov 8 02:00:19 2010
@@ -376,16 +376,16 @@ public class VFSClassLoader extends Secu
* @return An Enumeration of the resources associated with the name.
*/
@Override
- protected Enumeration findResources(final String name)
+ protected Enumeration<URL> findResources(final String name)
{
- return new Enumeration()
+ return new Enumeration<URL>()
{
public boolean hasMoreElements()
{
return false;
}
- public Object nextElement()
+ public URL nextElement()
{
return null;
}
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/CryptorFactory.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/CryptorFactory.java?rev=1032443&r1=1032442&r2=1032443&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/CryptorFactory.java
(original)
+++
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/CryptorFactory.java
Mon Nov 8 02:00:19 2010
@@ -64,7 +64,7 @@ public final class CryptorFactory
{
try
{
- Class clazz = Class.forName(cryptorClass);
+ Class<?> clazz = Class.forName(cryptorClass);
instance = (Cryptor) clazz.newInstance();
return instance;
}
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/FileObjectUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/FileObjectUtils.java?rev=1032443&r1=1032442&r2=1032443&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/FileObjectUtils.java
(original)
+++
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/util/FileObjectUtils.java
Mon Nov 8 02:00:19 2010
@@ -66,7 +66,7 @@ public final class FileObjectUtils
* @return true if fileObject is an instance of the specified Class.
* @throws FileSystemException if an error occurs.
*/
- public static boolean isInstanceOf(final FileObject fileObject, final
Class wantedClass) throws FileSystemException
+ public static boolean isInstanceOf(final FileObject fileObject, final
Class<?> wantedClass) throws FileSystemException
{
Object searchObject = fileObject;
while (searchObject instanceof DecoratedFileObject)