Author: sebb
Date: Mon Nov 8 00:07:18 2010
New Revision: 1032426
URL: http://svn.apache.org/viewvc?rev=1032426&view=rev
Log:
Fix up generics
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/auth/StaticUserAuthenticator.java
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/auth/StaticUserAuthenticator.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/auth/StaticUserAuthenticator.java?rev=1032426&r1=1032425&r2=1032426&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/auth/StaticUserAuthenticator.java
(original)
+++
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/auth/StaticUserAuthenticator.java
Mon Nov 8 00:07:18 2010
@@ -24,7 +24,7 @@ import org.apache.commons.vfs.util.UserA
* Provides always the same credentials data passed in with the constructor.
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS
team</a>
*/
-public class StaticUserAuthenticator implements UserAuthenticator, Comparable
+public class StaticUserAuthenticator implements UserAuthenticator,
Comparable<StaticUserAuthenticator>
{
/** The user name */
private final String username;
@@ -112,9 +112,8 @@ public class StaticUserAuthenticator imp
/**
* {...@inheritdoc}
*/
- public int compareTo(final Object o)
+ public int compareTo(final StaticUserAuthenticator other)
{
- StaticUserAuthenticator other = (StaticUserAuthenticator) o;
int result = compareStringOrNull(domain, other.domain);
result = result == 0 ? compareStringOrNull(username, other.username) :
result;
result = result == 0 ? compareStringOrNull(password, other.password) :
result;