Author: dennisl
Date: Mon Aug  7 12:22:24 2006
New Revision: 429442

URL: http://svn.apache.org/viewvc?rev=429442&view=rev
Log:
Remove the use of Java 1.5 specific metods.

Modified:
    
jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java

Modified: 
jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java?rev=429442&r1=429441&r2=429442&view=diff
==============================================================================
--- 
jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
 (original)
+++ 
jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
 Mon Aug  7 12:22:24 2006
@@ -142,11 +142,11 @@
 
                        // Now set the permissions (or at least a subset 
thereof - full permissions would probably require 
                        // subclassing FTPFile and adding extra metainformation 
there)
-                       if (attrib.contains("R")) {
+                       if (attrib.indexOf("R") != -1) {
                                f.setPermission(FTPFile.USER_ACCESS, 
FTPFile.READ_PERMISSION,
                                                true);
                        }
-                       if (attrib.contains("W")) {
+                       if (attrib.indexOf("W") != -1) {
                                f.setPermission(FTPFile.USER_ACCESS, 
FTPFile.WRITE_PERMISSION,
                                                true);
                        }



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

Reply via email to