commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1574286 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java
Date Wed, 05 Mar 2014 02:01:36 GMT
Author: sebb
Date: Wed Mar  5 02:01:35 2014
New Revision: 1574286

URL: http://svn.apache.org/r1574286
Log:
Ensure case statement has a default case

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java?rev=1574286&r1=1574285&r2=1574286&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java Wed Mar
 5 02:01:35 2014
@@ -417,8 +417,9 @@ public class FTPFile implements Serializ
                 return 'd';
             case SYMBOLIC_LINK_TYPE:
                 return 'l';
+            default:
+                return '?';
         }
-        return '?';
     }
 
     private String permissionToString(int access ){



Mime
View raw message