commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r922846 - in /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp: FTPClient.java FTPHTTPClient.java
Date Sun, 14 Mar 2010 13:58:21 GMT
Author: sebb
Date: Sun Mar 14 13:58:21 2010
New Revision: 922846

URL: http://svn.apache.org/viewvc?rev=922846&view=rev
Log:
Unnecessary cast

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPClient.java
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPClient.java?rev=922846&r1=922845&r2=922846&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPClient.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPClient.java
Sun Mar 14 13:58:21 2010
@@ -552,12 +552,12 @@ implements Configurable
             if (getRemoteAddress() instanceof Inet6Address) {
                 if (epsv() != FTPReply.ENTERING_EPSV_MODE)
                     return null;
-                __parseExtendedPassiveModeReply((String)_replyLines.get(0));
+                __parseExtendedPassiveModeReply(_replyLines.get(0));
             }
             else {
                 if (pasv() != FTPReply.ENTERING_PASSIVE_MODE)
                     return null;
-                __parsePassiveModeReply((String)_replyLines.get(0));
+                __parsePassiveModeReply(_replyLines.get(0));
             }
 
             socket = _socketFactory_.createSocket(__passiveHost, __passivePort);

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java?rev=922846&r1=922845&r2=922846&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
Sun Mar 14 13:58:21 2010
@@ -121,7 +121,7 @@ public class FTPHTTPClient extends FTPCl
             }
 
             String code = null;
-            String resp = (String) response.get(0);
+            String resp = response.get(0);
             if (resp.startsWith("HTTP/") && resp.length() >= 12) {
                 code = resp.substring(9, 12);
             } else {



Mime
View raw message